Skip to content

Commit fb9efcb

Browse files
committed
lint
1 parent 1cccfcc commit fb9efcb

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2545,7 +2545,7 @@ <h1><span class="secnum">1.1.1.1</span> Runtime Semantics: PropertyDefinitionEva
25452545
</emu-rhs>
25462546
</emu-production>
25472547
</emu-grammar>
2548-
<emu-alg><ol><li>Let <var>propertyKey</var> be ?&nbsp;Evaluation of <emu-nt><a href="https://tc39.es/ecma262/#prod-PropertyName">PropertyName</a></emu-nt>.</li><li><del>If this <emu-nt><a href="https://tc39.es/ecma262/#prod-PropertyDefinition">PropertyDefinition</a></emu-nt> is contained within a <emu-nt><a href="https://tc39.es/ecma262/#prod-Script">Script</a></emu-nt> that is being evaluated for <emu-xref aoid="ParseJSON" id="_ref_5"><a href="#sec-ParseJSON">ParseJSON</a></emu-xref> (see step <emu-xref href="#step-json-parse-eval" id="_ref_0"><a href="#step-json-parse-eval">9</a></emu-xref> of <emu-xref aoid="ParseJSON" id="_ref_6"><a href="#sec-ParseJSON">ParseJSON</a></emu-xref>), then</del><ol><li><del>Let <var>isProtoSetter</var> be <emu-val>false</emu-val>.</del></li></ol></li><li><del>Else i</del><ins>I</ins>f <var>propertyKey</var> is <emu-val>"__proto__"</emu-val> and <emu-xref aoid="IsComputedPropertyKey"><a href="https://tc39.es/ecma262/#sec-static-semantics-iscomputedpropertykey">IsComputedPropertyKey</a></emu-xref> of <emu-nt><a href="https://tc39.es/ecma262/#prod-PropertyName">PropertyName</a></emu-nt> is <emu-val>false</emu-val>, then<ol><li>Let <var>isProtoSetter</var> be <emu-val>true</emu-val>.</li></ol></li><li>Else,<ol><li>Let <var>isProtoSetter</var> be <emu-val>false</emu-val>.</li></ol></li><li>If <emu-xref aoid="IsAnonymousFunctionDefinition"><a href="https://tc39.es/ecma262/#sec-isanonymousfunctiondefinition">IsAnonymousFunctionDefinition</a></emu-xref>(<emu-nt><a href="https://tc39.es/ecma262/#prod-AssignmentExpression">AssignmentExpression</a></emu-nt>) is <emu-val>true</emu-val> and <var>isProtoSetter</var> is <emu-val>false</emu-val>, then<ol><li>Let <var>propertyValue</var> be ?&nbsp;<emu-xref aoid="NamedEvaluation"><a href="https://tc39.es/ecma262/#sec-runtime-semantics-namedevaluation">NamedEvaluation</a></emu-xref> of <emu-nt><a href="https://tc39.es/ecma262/#prod-AssignmentExpression">AssignmentExpression</a></emu-nt> with argument <var>propertyKey</var>.</li></ol></li><li>Else,<ol><li>Let <var>exprValueRef</var> be ?&nbsp;Evaluation of <emu-nt><a href="https://tc39.es/ecma262/#prod-AssignmentExpression">AssignmentExpression</a></emu-nt>.</li><li>Let <var>propertyValue</var> be ?&nbsp;<emu-xref aoid="GetValue"><a href="https://tc39.es/ecma262/#sec-getvalue">GetValue</a></emu-xref>(<var>exprValueRef</var>).</li></ol></li><li>If <var>isProtoSetter</var> is <emu-val>true</emu-val>, then<ol><li>If <var>propertyValue</var> is an Object or <var>propertyValue</var> is <emu-val>null</emu-val>, then<ol><li>Perform !&nbsp;<var>obj</var>.[[SetPrototypeOf]](<var>propertyValue</var>).</li></ol></li><li>Return <emu-const>unused</emu-const>.</li></ol></li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>obj</var> is an ordinary, extensible object with no non-configurable properties.</li><li>Perform !&nbsp;<emu-xref aoid="CreateDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createdatapropertyorthrow">CreateDataPropertyOrThrow</a></emu-xref>(<var>obj</var>, <var>propertyKey</var>, <var>propertyValue</var>).</li><li>Return <emu-const>unused</emu-const>.</li></ol></emu-alg>
2548+
<emu-alg><ol><li>Let <var>propertyKey</var> be ?&nbsp;Evaluation of <emu-nt><a href="https://tc39.es/ecma262/#prod-PropertyName">PropertyName</a></emu-nt>.</li><li><del>If this <emu-nt><a href="https://tc39.es/ecma262/#prod-PropertyDefinition">PropertyDefinition</a></emu-nt> is contained within a <emu-nt><a href="https://tc39.es/ecma262/#prod-Script">Script</a></emu-nt> that is being evaluated for <emu-xref aoid="ParseJSON" id="_ref_5"><a href="#sec-ParseJSON">ParseJSON</a></emu-xref> (see step <emu-xref href="#step-json-parse-eval" id="_ref_0"><a href="#step-json-parse-eval">9</a></emu-xref> of <emu-xref aoid="ParseJSON" id="_ref_6"><a href="#sec-ParseJSON">ParseJSON</a></emu-xref>), then</del><ol><li><del>Let <var>isProtoSetter</var> be <emu-val>false</emu-val>.</del></li></ol></li><li>If <del>Else if</del> <var>propertyKey</var> is <emu-val>"__proto__"</emu-val> and <emu-xref aoid="IsComputedPropertyKey"><a href="https://tc39.es/ecma262/#sec-static-semantics-iscomputedpropertykey">IsComputedPropertyKey</a></emu-xref> of <emu-nt><a href="https://tc39.es/ecma262/#prod-PropertyName">PropertyName</a></emu-nt> is <emu-val>false</emu-val>, then<ol><li>Let <var>isProtoSetter</var> be <emu-val>true</emu-val>.</li></ol></li><li>Else,<ol><li>Let <var>isProtoSetter</var> be <emu-val>false</emu-val>.</li></ol></li><li>If <emu-xref aoid="IsAnonymousFunctionDefinition"><a href="https://tc39.es/ecma262/#sec-isanonymousfunctiondefinition">IsAnonymousFunctionDefinition</a></emu-xref>(<emu-nt><a href="https://tc39.es/ecma262/#prod-AssignmentExpression">AssignmentExpression</a></emu-nt>) is <emu-val>true</emu-val> and <var>isProtoSetter</var> is <emu-val>false</emu-val>, then<ol><li>Let <var>propertyValue</var> be ?&nbsp;<emu-xref aoid="NamedEvaluation"><a href="https://tc39.es/ecma262/#sec-runtime-semantics-namedevaluation">NamedEvaluation</a></emu-xref> of <emu-nt><a href="https://tc39.es/ecma262/#prod-AssignmentExpression">AssignmentExpression</a></emu-nt> with argument <var>propertyKey</var>.</li></ol></li><li>Else,<ol><li>Let <var>exprValueRef</var> be ?&nbsp;Evaluation of <emu-nt><a href="https://tc39.es/ecma262/#prod-AssignmentExpression">AssignmentExpression</a></emu-nt>.</li><li>Let <var>propertyValue</var> be ?&nbsp;<emu-xref aoid="GetValue"><a href="https://tc39.es/ecma262/#sec-getvalue">GetValue</a></emu-xref>(<var>exprValueRef</var>).</li></ol></li><li>If <var>isProtoSetter</var> is <emu-val>true</emu-val>, then<ol><li>If <var>propertyValue</var> is an Object or <var>propertyValue</var> is <emu-val>null</emu-val>, then<ol><li>Perform !&nbsp;<var>obj</var>.[[SetPrototypeOf]](<var>propertyValue</var>).</li></ol></li><li>Return <emu-const>unused</emu-const>.</li></ol></li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>obj</var> is an ordinary, extensible object with no non-configurable properties.</li><li>Perform !&nbsp;<emu-xref aoid="CreateDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createdatapropertyorthrow">CreateDataPropertyOrThrow</a></emu-xref>(<var>obj</var>, <var>propertyKey</var>, <var>propertyValue</var>).</li><li>Return <emu-const>unused</emu-const>.</li></ol></emu-alg>
25492549
</emu-clause>
25502550
</emu-clause>
25512551
</emu-clause>

spec.emu

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ contributors: Robin Ricard, Rick Button, Ashley Claymore, Nicolò Ribaudo, Peter
3030
1. Let _propertyKey_ be ? Evaluation of |PropertyName|.
3131
1. <del>If this |PropertyDefinition| is contained within a |Script| that is being evaluated for ParseJSON (see step <emu-xref href="#step-json-parse-eval"></emu-xref> of ParseJSON), then</del>
3232
1. <del>Let _isProtoSetter_ be *false*.</del>
33-
1. <del>Else i</del><ins>I</ins>f _propertyKey_ is *"__proto__"* and IsComputedPropertyKey of |PropertyName| is *false*, then
33+
1. If <del>Else if</del> _propertyKey_ is *"__proto__"* and IsComputedPropertyKey of |PropertyName| is *false*, then
3434
1. Let _isProtoSetter_ be *true*.
3535
1. Else,
3636
1. Let _isProtoSetter_ be *false*.
@@ -218,11 +218,14 @@ contributors: Robin Ricard, Rick Button, Ashley Claymore, Nicolò Ribaudo, Peter
218218
</emu-clause>
219219

220220
<emu-clause id="sec-jsonarrayaccumulation" type="sdo">
221-
<h1><ins>Runtime Semantics: JSONArrayAccumulation (
222-
_array_: an Array,
223-
_nextIndex_: an integer,
224-
_options_: a JSON Parse Options Record,
225-
): a Completion Record</ins>
221+
<h1>
222+
<ins>
223+
Runtime Semantics: JSONArrayAccumulation (
224+
_array_: an Array,
225+
_nextIndex_: an integer,
226+
_options_: a JSON Parse Options Record,
227+
): a Completion Record
228+
</ins>
226229
</h1>
227230
<dl class="header">
228231
</dl>

0 commit comments

Comments
 (0)