We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718dc5b commit 3b5d73fCopy full SHA for 3b5d73f
src/compiler/emitter.ts
@@ -21,8 +21,7 @@ namespace ts {
21
var __extends = (this && this.__extends) || function (d, b) {
22
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
23
function __() { this.constructor = d; }
24
- __.prototype = b.prototype;
25
- d.prototype = new __();
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26
};`;
27
28
// emit output for the __decorate helper function
0 commit comments