blob: aa392bd88abd58b43c1f14c98836ab87942bc073 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
class Hello extends Object {
constructor()
{
super();
}
}
var hello = new Hello();
shouldBe(hello.__proto__, Hello.prototype);
shouldBe(Reflect.construct(Object, [], Hello).__proto__, Hello.prototype);