Skip to content

Commit

Permalink
Change IsStrict(this production) to IsStrict(this |Foo|)
Browse files Browse the repository at this point in the history
... where possible, and otherwise to `IsStrict(this phrase)`.
  • Loading branch information
jmdyck committed Oct 27, 2023
1 parent 72fd493 commit 4ca0ae7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -16883,7 +16883,7 @@ <h1>Static Semantics: Early Errors</h1>
DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral
</emu-grammar>
<ul>
<li>It is a Syntax Error if IsStrict(this production) is *true*.</li>
<li>It is a Syntax Error if IsStrict(this phrase) is *true*.</li>
</ul>
<emu-note>In non-strict code, this syntax is Legacy.</emu-note>
</emu-clause>
Expand Down Expand Up @@ -17150,7 +17150,7 @@ <h1>Static Semantics: Early Errors</h1>
NonOctalDecimalEscapeSequence
</emu-grammar>
<ul>
<li>It is a Syntax Error if IsStrict(this production) is *true*.</li>
<li>It is a Syntax Error if IsStrict(this |EscapeSequence|) is *true*.</li>
</ul>
<emu-note>In non-strict code, this syntax is Legacy.</emu-note>
<emu-note>
Expand Down Expand Up @@ -18007,7 +18007,7 @@ <h1>Static Semantics: Early Errors</h1>
<emu-grammar>BindingIdentifier : Identifier</emu-grammar>
<ul>
<li>
It is a Syntax Error if IsStrict(this production) is *true* and the StringValue of |Identifier| is either *"arguments"* or *"eval"*.
It is a Syntax Error if IsStrict(this |BindingIdentifier|) is *true* and the StringValue of |Identifier| is either *"arguments"* or *"eval"*.
</li>
</ul>
<emu-grammar>
Expand All @@ -18019,7 +18019,7 @@ <h1>Static Semantics: Early Errors</h1>
</emu-grammar>
<ul>
<li>
It is a Syntax Error if IsStrict(this production) is *true*.
It is a Syntax Error if IsStrict(this phrase) is *true*.
</li>
</ul>
<emu-grammar>
Expand Down Expand Up @@ -18068,7 +18068,7 @@ <h1>Static Semantics: Early Errors</h1>
<emu-grammar>Identifier : IdentifierName but not ReservedWord</emu-grammar>
<ul>
<li>
It is a Syntax Error if IsStrict(this phrase) is *true* and the StringValue of |IdentifierName| is one of *"implements"*, *"interface"*, *"let"*, *"package"*, *"private"*, *"protected"*, *"public"*, *"static"*, or *"yield"*.
It is a Syntax Error if IsStrict(this |Identifier|) is *true* and the StringValue of |IdentifierName| is one of *"implements"*, *"interface"*, *"let"*, *"package"*, *"private"*, *"protected"*, *"public"*, *"static"*, or *"yield"*.
</li>
<li>
It is a Syntax Error if the goal symbol of the syntactic grammar is |Module| and the StringValue of |IdentifierName| is *"await"*.
Expand Down Expand Up @@ -22569,7 +22569,7 @@ <h1>Static Semantics: Early Errors</h1>
<emu-grammar>WithStatement : `with` `(` Expression `)` Statement</emu-grammar>
<ul>
<li>
It is a Syntax Error if IsStrict(this production) is *true*.
It is a Syntax Error if IsStrict(this |WithStatement|) is *true*.
</li>
<li>
It is a Syntax Error if IsLabelledFunction(|Statement|) is *true*.
Expand Down Expand Up @@ -50507,7 +50507,7 @@ <h1>Changes to Block Static Semantics: Early Errors</h1>
<emu-grammar>Block : `{` StatementList `}`</emu-grammar>
<ul>
<li>
It is a Syntax Error if the LexicallyDeclaredNames of |StatementList| contains any duplicate entries<ins>, unless IsStrict(this production) is *false* and the duplicate entries are only bound by FunctionDeclarations</ins>.
It is a Syntax Error if the LexicallyDeclaredNames of |StatementList| contains any duplicate entries<ins>, unless IsStrict(this |Block|) is *false* and the duplicate entries are only bound by FunctionDeclarations</ins>.
</li>
<li>
It is a Syntax Error if any element of the LexicallyDeclaredNames of |StatementList| also occurs in the VarDeclaredNames of |StatementList|.
Expand All @@ -50521,7 +50521,7 @@ <h1>Changes to `switch` Statement Static Semantics: Early Errors</h1>
<emu-grammar>SwitchStatement : `switch` `(` Expression `)` CaseBlock</emu-grammar>
<ul>
<li>
It is a Syntax Error if the LexicallyDeclaredNames of |CaseBlock| contains any duplicate entries<ins>, unless IsStrict(this production) is *false* and the duplicate entries are only bound by FunctionDeclarations</ins>.
It is a Syntax Error if the LexicallyDeclaredNames of |CaseBlock| contains any duplicate entries<ins>, unless IsStrict(this |SwitchStatement|) is *false* and the duplicate entries are only bound by FunctionDeclarations</ins>.
</li>
<li>
It is a Syntax Error if any element of the LexicallyDeclaredNames of |CaseBlock| also occurs in the VarDeclaredNames of |CaseBlock|.
Expand Down

0 comments on commit 4ca0ae7

Please sign in to comment.