From ab57ef3a6a11ba9ab9ead5dad7376d94f96afc96 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Thu, 12 Dec 2019 17:42:50 -0500 Subject: [PATCH] Editorial: tweak syntax in algorithms (PR #1644 and PR #1646) --- spec.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec.html b/spec.html index 621e3fd8dfc..918d427c681 100644 --- a/spec.html +++ b/spec.html @@ -13675,14 +13675,14 @@

Runtime Semantics: Evaluation

1. Let _baseReference_ be the result of evaluating |CallExpression|. 1. Let _baseValue_ be ? GetValue(_baseReference_). - 1. If the code matched by this |CallExpression| is strict mode code, let _strict_ be *true*, else let _strict_ be *false*. + 1. If the code matched by this |CallExpression| is strict mode code, let _strict_ be *true*; else let _strict_ be *false*. 1. Return ? EvaluatePropertyAccessWithExpressionKey(_baseValue_, |Expression|, _strict_). CallExpression : CallExpression `.` IdentifierName 1. Let _baseReference_ be the result of evaluating |CallExpression|. 1. Let _baseValue_ be ? GetValue(_baseReference_). - 1. If the code matched by this |CallExpression| is strict mode code, let _strict_ be *true*, else let _strict_ be *false*. + 1. If the code matched by this |CallExpression| is strict mode code, let _strict_ be *true*; else let _strict_ be *false*. 1. Return ? EvaluatePropertyAccessWithIdentifierKey(_baseValue_, |IdentifierName|, _strict_). @@ -13703,7 +13703,7 @@

Runtime Semantics: EvaluatePropertyAccessWithExpressionKey ( _baseValue_, _e

Runtime Semantics: EvaluatePropertyAccessWithIdentifierKey ( _baseValue_, _identifierName_, _strict_ )

The abstract operation EvaluatePropertyAccessWithIdentifierKey takes as arguments a value _baseValue_, a Parse Node _identifierName_, and a Boolean argument _strict_. It performs the following steps:

- 1. Assert: _identifierName_ is an |IdentifierName| + 1. Assert: _identifierName_ is an |IdentifierName|. 1. Let _bv_ be ? RequireObjectCoercible(_baseValue_). 1. Let _propertyNameString_ be StringValue of _identifierName_. 1. Return a value of type Reference whose base value component is _bv_, whose referenced name component is _propertyNameString_, and whose strict reference flag is _strict_. @@ -13967,12 +13967,12 @@

Runtime Semantics: ChainEvaluation

OptionalChain : `?.` `[` Expression `]` - 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*, else let _strict_ be *false*. + 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*; else let _strict_ be *false*. 1. Return ? EvaluatePropertyAccessWithExpressionKey(_baseValue_, |Expression|, _strict_). OptionalChain : `?.` IdentifierName - 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*, else let _strict_ be *false*. + 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*; else let _strict_ be *false*. 1. Return ? EvaluatePropertyAccessWithIdentifierKey(_baseValue_, |IdentifierName|, _strict_). OptionalChain : OptionalChain Arguments @@ -13989,7 +13989,7 @@

Runtime Semantics: ChainEvaluation

1. Let _optionalChain_ be |OptionalChain|. 1. Let _newReference_ be ? ChainEvaluation of _optionalChain_ with arguments _baseValue_ and _baseReference_. 1. Let _newValue_ be ? GetValue(_newReference_). - 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*, else let _strict_ be *false*. + 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*; else let _strict_ be *false*. 1. Return ? EvaluatePropertyAccessWithExpressionKey(_newValue_, |Expression|, _strict_). OptionalChain : OptionalChain `.` IdentifierName @@ -13997,7 +13997,7 @@

Runtime Semantics: ChainEvaluation

1. Let _optionalChain_ be |OptionalChain|. 1. Let _newReference_ be ? ChainEvaluation of _optionalChain_ with arguments _baseValue_ and _baseReference_. 1. Let _newValue_ be ? GetValue(_newReference_). - 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*, else let _strict_ be *false*. + 1. If the code matched by this |OptionalChain| is strict mode code, let _strict_ be *true*; else let _strict_ be *false*. 1. Return ? EvaluatePropertyAccessWithIdentifierKey(_newValue_, |IdentifierName|, _strict_). @@ -15194,7 +15194,7 @@

Runtime Semantics: Evaluation

1. Let _lref_ be the result of evaluating |CoalesceExpressionHead|. 1. Let _lval_ be ? GetValue(_lref_). - 1. If _lval_ is *undefined* or *null*, + 1. If _lval_ is *undefined* or *null*, then 1. Let _rref_ be the result of evaluating |BitwiseORExpression|. 1. Return ? GetValue(_rref_). 1. Otherwise, return _lval_.