Skip to content

Commit

Permalink
Normative: Revert to ES2015 semantics for class extends null (#781)
Browse files Browse the repository at this point in the history
This was the consensus reached at the January TC39 meeting.
Future work will be done to re-enable the use of a null
extends clause.

Manual revert of commits:
  98c67f2
  a35f0f3
  f3881fe
  • Loading branch information
ajklein authored and bterlson committed Jan 25, 2017
1 parent bb96899 commit c57ef95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -19137,7 +19137,7 @@ <h1>Runtime Semantics: ClassDefinitionEvaluation</h1>
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 _superclass_ is not *null*, then
1. If |ClassHeritage_opt| is present, then
1. Let _constructor_ be the result of parsing the source text
<pre><code class="javascript">constructor(... args){ super (...args);}</code></pre>
using the syntactic grammar with the goal symbol |MethodDefinition[~Yield, ~Await]|.
Expand All @@ -19149,7 +19149,7 @@ <h1>Runtime Semantics: ClassDefinitionEvaluation</h1>
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 _superclass_ is not *null*, then set _F_.[[ConstructorKind]] to `"derived"`.
1. If |ClassHeritage_opt| is present, then set _F_.[[ConstructorKind]] to `"derived"`.
1. Perform MakeConstructor(_F_, *false*, _proto_).
1. Perform MakeClassConstructor(_F_).
1. Perform CreateMethodProperty(_proto_, `"constructor"`, _F_).
Expand Down

0 comments on commit c57ef95

Please sign in to comment.