mirror of https://github.com/tc39/test262.git
Fix test for instantiating a class extending null (#813)
The sameValue assertion should be that the [[Prototype]] is equal to the class's prototype, not the constructor.
This commit is contained in:
parent
a73221eb8f
commit
4ff7e4342e
|
@ -38,4 +38,4 @@ class Foo extends null {
|
|||
|
||||
var foo = new Foo();
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(foo), Foo);
|
||||
assert.sameValue(Object.getPrototypeOf(foo), Foo.prototype);
|
||||
|
|
Loading…
Reference in New Issue