Skip to content

Commit 7a554cd

Browse files
committed
Editorial: rename BindingPattern to VariableDeclarationPattern
1 parent 2cfa222 commit 7a554cd

File tree

4 files changed

+77
-55
lines changed

4 files changed

+77
-55
lines changed

assets/ecmarkup.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

index.html

Lines changed: 58 additions & 37 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"license": "MIT",
1515
"devDependencies": {
16-
"@tc39/ecma262-biblio": "^2.1.2771",
17-
"ecmarkup": "^19.1.0"
16+
"@tc39/ecma262-biblio": "^2.1.2775",
17+
"ecmarkup": "^20.0.0"
1818
},
1919
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
2020
}

spec.emu

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ contributors:
13791379
MatchPattern[Yield, Await] :
13801380
`(` MatchPattern[?Yield, ?Await] `)`
13811381
PrimitivePattern
1382-
BindingPattern[?Yield, ?Await]
1382+
VariableDeclarationPattern[?Yield, ?Await]
13831383
MemberExpressionPattern[?Yield, ?Await]
13841384
ObjectPattern[?Yield, ?Await]
13851385
ArrayPattern[?Yield, ?Await]
@@ -1435,9 +1435,9 @@ contributors:
14351435
</code></pre>
14361436
</emu-note>
14371437
<!-- endregion -->
1438-
<!-- #region BindingPattern -->
1438+
<!-- #region VariableDeclarationPattern -->
14391439
<emu-grammar type="definition">
1440-
BindingPattern[Yield, Await] :
1440+
VariableDeclarationPattern[Yield, Await] :
14411441
VarOrLetOrConst BindingIdentifier[?Yield, ?Await]
14421442

14431443
VarOrLetOrConst :
@@ -1687,13 +1687,14 @@ contributors:
16871687
</emu-note>
16881688
<emu-note type="editor">
16891689
<p>It is possible to add the following production.</p>
1690-
<emu-grammar type="definition">
1690+
<emu-grammar>
16911691
RelationalPattern[Yield, Await] :
16921692
`typeof` `==` PatternMatchingStringLikeExpression[?Yield, ?Await]
16931693
`typeof` `!=` PatternMatchingStringLikeExpression[?Yield, ?Await]
16941694
`typeof` `===` PatternMatchingStringLikeExpression[?Yield, ?Await]
16951695
`typeof` `!==` PatternMatchingStringLikeExpression[?Yield, ?Await]
1696-
1696+
</emu-grammar>
1697+
<emu-grammar type="definition">
16971698
PatternMatchingStringLikeExpression[Yield, Await] :
16981699
StringLiteral
16991700
NoSubstitutionTemplate
@@ -1702,7 +1703,7 @@ contributors:
17021703
<p>
17031704
The recommended way to match a String is to use the <emu-xref href="#sec-string-%symbol.custommatcher%"
17041705
title></emu-xref>,
1705-
but it can be replaced. This production adds the ability to do the unforgeable `typeof` test.
1706+
but it can be replaced by a custom implementation. This production adds the ability to do the unforgeable `typeof` test.
17061707
</p>
17071708
<pre><code class="javascript">
17081709
if (expr is { version: 2 or 3, value: String }) {}
@@ -1832,9 +1833,9 @@ contributors:
18321833
<li>It is a Syntax Error if |NoSubstitutionTemplate| Contains |NotEscapeSequence|.</li>
18331834
</ul>
18341835
<!-- #endregion -->
1835-
<!-- #region BindingPattern -->
1836+
<!-- #region VariableDeclarationPattern -->
18361837
<emu-grammar>
1837-
BindingPattern : VarOrLetOrConst BindingIdentifier
1838+
VariableDeclarationPattern : VarOrLetOrConst BindingIdentifier
18381839
</emu-grammar>
18391840
<ul>
18401841
<li>It is a Syntax Error if |VarOrLetOrConst| is |LetOrConst| and the StringValue of |BindingIdentifier| is *"let"*.</li>
@@ -2006,10 +2007,10 @@ contributors:
20062007
1. Return PrimitivePatternMatches of |PrimitivePattern| with argument _subject_.
20072008
</emu-alg>
20082009
<emu-grammar>
2009-
MatchPattern : BindingPattern
2010+
MatchPattern : VariableDeclarationPattern
20102011
</emu-grammar>
20112012
<emu-alg>
2012-
1. Return BindingPatternMatches of |BindingPattern| with argument _subject_.
2013+
1. Return VariableDeclarationPatternMatches of |VariableDeclarationPattern| with argument _subject_.
20132014
</emu-alg>
20142015
<emu-grammar>
20152016
MatchPattern : MemberExpressionPattern
@@ -2077,16 +2078,16 @@ contributors:
20772078
</emu-alg>
20782079
</emu-clause>
20792080

2080-
<emu-clause id="sec-binding-pattern-matches" type="sdo">
2081+
<emu-clause id="sec-variable-declaration-pattern-matches" type="sdo">
20812082
<h1>
2082-
Runtime Semantics: BindingPatternMatches (
2083+
Runtime Semantics: VariableDeclarationPatternMatches (
20832084
_subject_: an ECMAScript language value,
20842085
): a Boolean
20852086
</h1>
20862087
<dl class="header">
20872088
</dl>
20882089
<emu-grammar>
2089-
BindingPattern : VarOrLetOrConst BindingIdentifier
2090+
VariableDeclarationPattern : VarOrLetOrConst BindingIdentifier
20902091
</emu-grammar>
20912092
<emu-alg>
20922093
1. TODO: This section is not written in the spec language yet.
@@ -3125,7 +3126,7 @@ contributors:
31253126
<h1>Patterns</h1>
31263127
<emu-prodref name="MatchPattern"></emu-prodref>
31273128
<emu-prodref name="PrimitivePattern"></emu-prodref>
3128-
<emu-prodref name="BindingPattern"></emu-prodref>
3129+
<emu-prodref name="VariableDeclarationPattern"></emu-prodref>
31293130
<emu-prodref name="VarOrLetOrConst"></emu-prodref>
31303131
<emu-prodref name="MemberExpressionPattern"></emu-prodref>
31313132
<emu-prodref name="ObjectPattern"></emu-prodref>

0 commit comments

Comments
 (0)