From 7cc4acf786028cb2b5e12c5a005fe185ed8130f5 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Fri, 16 Jun 2023 16:16:47 -0400 Subject: [PATCH] In CompileAtom, copy wording-changes ... prompted by https://github.com/tc39/ecma262/pull/2418#discussion_r1228531486 from `Atom :: CharacterClass` semantics to `AtomEscape :: CharacterClassEscape` semantics. --- spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec.html b/spec.html index 848b362fd06..ccccb9e6b2b 100644 --- a/spec.html +++ b/spec.html @@ -36445,9 +36445,9 @@

AtomEscape :: CharacterClassEscape 1. Let _cs_ be CompileToCharSet of |CharacterClassEscape| with argument _rer_. - 1. If _rer_.[[UnicodeSets]] is *false*, or if every element of _cs_ consists of a single character (including if _cs_ is empty), return CharacterSetMatcher(_rer_, _cs_, *false*, _direction_). + 1. If _rer_.[[UnicodeSets]] is *false*, or if every CharSetElement of _cs_ consists of a single character (including if _cs_ is empty), return CharacterSetMatcher(_rer_, _cs_, *false*, _direction_). 1. Let _lm_ be an empty List of Matchers. - 1. For each string _s_ in _cs_ whose length is greater than 1, iterating in descending order of string length, do + 1. For each CharSetElement _s_ in _cs_ containing more than 1 character, iterating in descending order of length, do 1. Let _cs2_ be a one-element CharSet containing the last code point of _s_. 1. Let _m2_ be CharacterSetMatcher(_rer_, _cs2_, *false*, _direction_). 1. For each code point _c1_ in _s_, iterating backwards from its second-to-last code point, do @@ -36455,7 +36455,7 @@

1. Let _m1_ be CharacterSetMatcher(_rer_, _cs1_, *false*, _direction_). 1. Set _m2_ to MatchSequence(_m1_, _m2_, _direction_). 1. Append _m2_ to _lm_. - 1. Let _singles_ be the CharSet containing every element of _cs_ which consists of a single character. + 1. Let _singles_ be the CharSet containing every CharSetElement of _cs_ which consists of a single character. 1. Append CharacterSetMatcher(_rer_, _singles_, *false*, _direction_) to _lm_. 1. If _cs_ contains the empty sequence of characters, append EmptyMatcher() to _lm_. 1. Let _m2_ be the last Matcher in _lm_.