mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
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…
x
Reference in New Issue
Block a user