Skip to content

Commit

Permalink
Editorial: swap order of arguments to DefineMethodProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Aug 29, 2021
1 parent a854150 commit a204a54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13148,8 +13148,8 @@ <h1>
<emu-clause id="sec-definemethodproperty" type="abstract operation">
<h1>
DefineMethodProperty (
_key_: a property key or Private Name,
_homeObject_: an Object,
_key_: a property key or Private Name,
_closure_: a function object,
_enumerable_: a Boolean,
)
Expand Down Expand Up @@ -23024,7 +23024,7 @@ <h1>Runtime Semantics: MethodDefinitionEvaluation</h1>
<emu-alg>
1. Let _methodDef_ be ? DefineMethod of |MethodDefinition| with argument _object_.
1. Perform ! SetFunctionName(_methodDef_.[[Closure]], _methodDef_.[[Key]]).
1. Return ? DefineMethodProperty(_methodDef_.[[Key]], _object_, _methodDef_.[[Closure]], _enumerable_).
1. Return ? DefineMethodProperty(_object_, _methodDef_.[[Key]], _methodDef_.[[Closure]], _enumerable_).
</emu-alg>
<emu-grammar>MethodDefinition : `get` ClassElementName `(` `)` `{` FunctionBody `}`</emu-grammar>
<emu-alg>
Expand Down Expand Up @@ -23073,7 +23073,7 @@ <h1>Runtime Semantics: MethodDefinitionEvaluation</h1>
1. Perform SetFunctionName(_closure_, _propKey_).
1. Let _prototype_ be ! OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype%).
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return ? DefineMethodProperty(_propKey_, _object_, _closure_, _enumerable_).
1. Return ? DefineMethodProperty(_object_, _propKey_, _closure_, _enumerable_).
</emu-alg>
<emu-grammar>
AsyncGeneratorMethod : `async` `*` ClassElementName `(` UniqueFormalParameters `)` `{` AsyncGeneratorBody `}`
Expand All @@ -23089,7 +23089,7 @@ <h1>Runtime Semantics: MethodDefinitionEvaluation</h1>
1. Perform ! SetFunctionName(_closure_, _propKey_).
1. Let _prototype_ be ! OrdinaryObjectCreate(%AsyncGeneratorFunction.prototype.prototype%).
1. Perform ! DefinePropertyOrThrow(_closure_, *"prototype"*, PropertyDescriptor { [[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return ? DefineMethodProperty(_propKey_, _object_, _closure_, _enumerable_).
1. Return ? DefineMethodProperty(_object_, _propKey_, _closure_, _enumerable_).
</emu-alg>
<emu-grammar>
AsyncMethod : `async` ClassElementName `(` UniqueFormalParameters `)` `{` AsyncFunctionBody `}`
Expand All @@ -23103,7 +23103,7 @@ <h1>Runtime Semantics: MethodDefinitionEvaluation</h1>
1. Let _closure_ be ! OrdinaryFunctionCreate(%AsyncFunction.prototype%, _sourceText_, |UniqueFormalParameters|, |AsyncFunctionBody|, ~non-lexical-this~, _scope_, _privateScope_).
1. Perform ! MakeMethod(_closure_, _object_).
1. Perform ! SetFunctionName(_closure_, _propKey_).
1. Return ? DefineMethodProperty(_propKey_, _object_, _closure_, _enumerable_).
1. Return ? DefineMethodProperty(_object_, _propKey_, _closure_, _enumerable_).
</emu-alg>
</emu-clause>
</emu-clause>
Expand Down

0 comments on commit a204a54

Please sign in to comment.