From ceaebf70582ec8b6d7cdf88d38ff5f23959da4f9 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Wed, 19 Jun 2019 14:48:53 -0500 Subject: [PATCH] fix built-ins/Object/subclass-object-arg (#2200) --- test/built-ins/Object/subclass-object-arg.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/built-ins/Object/subclass-object-arg.js b/test/built-ins/Object/subclass-object-arg.js index d4de31e5b9..9500340e2f 100644 --- a/test/built-ins/Object/subclass-object-arg.js +++ b/test/built-ins/Object/subclass-object-arg.js @@ -11,7 +11,6 @@ info: | 1. If NewTarget is neither undefined nor the active function, then a. Return ? OrdinaryCreateFromConstructor(NewTarget, "%ObjectPrototype%"). [...] - 3. Return ! ToObject(value). features: [class, Reflect, Reflect.construct] ---*/ @@ -20,5 +19,8 @@ class O extends Object {} var o1 = new O({a: 1}); var o2 = Reflect.construct(Object, [{b: 2}], O); -assert.sameValue(o1.a, 1); -assert.sameValue(o2.b, 2); +assert.sameValue(o1.a, undefined); +assert.sameValue(o2.b, undefined); + +assert.sameValue(Object.getPrototypeOf(o1), O.prototype); +assert.sameValue(Object.getPrototypeOf(o2), O.prototype);