From 1ceb1146877fb89d0f5a1d645838ebe2d57d6e49 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 5678a348554..c9b7c03bff3 100644 --- a/spec.html +++ b/spec.html @@ -13801,14 +13801,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_). @@ -13829,7 +13829,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_. @@ -14093,12 +14093,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 @@ -14115,7 +14115,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 @@ -14123,7 +14123,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_). @@ -15320,7 +15320,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_.