We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d9dea0 commit 7ee42c3Copy full SHA for 7ee42c3
tests/baselines/reference/typeofClassExpression1.js
@@ -129,6 +129,8 @@ var __extends = (this && this.__extends) || (function () {
129
return extendStatics(d, b);
130
};
131
return function (d, b) {
132
+ if (typeof b !== "function" && b !== null)
133
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
134
extendStatics(d, b);
135
function __() { this.constructor = d; }
136
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
0 commit comments