blob: 1a14249994d6486c1c7c8e6d159c7573f933c0ce [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var called = null;
class B {
constructor() {
called = 'B';
}
}
class C extends B {
}
B.prototype.constructor = function F() {
called = 'F';
};
new C();
shouldBe(called, 'B');