From 4ff7e4342e1a15ce7af893ba9af9bd55c7d95e51 Mon Sep 17 00:00:00 2001 From: Adam Klein Date: Wed, 28 Dec 2016 17:18:19 -0800 Subject: [PATCH] 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. --- .../class-definition-null-proto-missing-return-override.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/language/statements/class/subclass/class-definition-null-proto-missing-return-override.js b/test/language/statements/class/subclass/class-definition-null-proto-missing-return-override.js index ecbafd8c0b..fdf78ae5a2 100644 --- a/test/language/statements/class/subclass/class-definition-null-proto-missing-return-override.js +++ b/test/language/statements/class/subclass/class-definition-null-proto-missing-return-override.js @@ -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);