From f3881fe4b2363707cc68ba9972b041e1c7233922 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 20 Dec 2016 00:06:57 -0800 Subject: [PATCH] Normative: Invoke superclass constructor even if its .prototype is null (#755) --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 26f63da320..3c436e80ec 100644 --- a/spec.html +++ b/spec.html @@ -19070,7 +19070,7 @@

Runtime Semantics: ClassDefinitionEvaluation

1. If |ClassBody_opt| is not present, let _constructor_ be ~empty~. 1. Else, let _constructor_ be ConstructorMethod of |ClassBody|. 1. If _constructor_ is ~empty~, then - 1. If |ClassHeritage_opt| is present and _protoParent_ is not *null*, then + 1. If |ClassHeritage_opt| is present and _superclass_ is not *null*, then 1. Let _constructor_ be the result of parsing the source text
constructor(... args){ super (...args);}
using the syntactic grammar with the goal symbol |MethodDefinition[~Yield, ~Await]|. @@ -19082,7 +19082,7 @@

Runtime Semantics: ClassDefinitionEvaluation

1. Let _constructorInfo_ be the result of performing DefineMethod for _constructor_ with arguments _proto_ and _constructorParent_ as the optional _functionPrototype_ argument. 1. Assert: _constructorInfo_ is not an abrupt completion. 1. Let _F_ be _constructorInfo_.[[Closure]]. - 1. If |ClassHeritage_opt| is present and _protoParent_ is not *null*, then set _F_.[[ConstructorKind]] to `"derived"`. + 1. If |ClassHeritage_opt| is present and _superclass_ is not *null*, then set _F_.[[ConstructorKind]] to `"derived"`. 1. Perform MakeConstructor(_F_, *false*, _proto_). 1. Perform MakeClassConstructor(_F_). 1. Perform CreateMethodProperty(_proto_, `"constructor"`, _F_).