Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit b714371

Browse files
committed
[spec] more PR feedback
1 parent bc1baf9 commit b714371

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec.emu

+4-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ contributors:
6464
1. Return the string-concatenation of 0x005C (REVERSE SOLIDUS) and the string in the “ControlEscape” column of the row whose “Code Point” column contains _c_.
6565
1. Let _otherPunctuators_ be the string-concatenation of *",-=<>#&!%:;@~'`"* and the code unit 0x0022 (QUOTATION MARK).
6666
1. Let _toEscape_ be StringToCodePoints(_otherPunctuators_).
67-
1. If _toEscape_ contains _c_, _c_ is matched by |WhiteSpace| or |LineTerminator|, or _c_ has the same numeric value as a leading surrogate or trailing surrogate, then
68-
1. If the numeric value of _c_ ≤ 0xFF, then
69-
1. Let _hex_ be Number::toString(𝔽(_c_), 16).
67+
1. If _toEscape_ contains _c_, _c_ is matched by either |WhiteSpace| or |LineTerminator|, or _c_ has the same numeric value as a leading surrogate or trailing surrogate, then
68+
1. Let _cNum_ be the numeric value of _c_.
69+
1. If _cNum_ ≤ 0xFF, then
70+
1. Let _hex_ be Number::toString(𝔽(_cNum_), 16).
7071
1. Return the string-concatenation of the code unit 0x005C (REVERSE SOLIDUS), *"x"*, and StringPad(_hex_, 2, *"0"*, ~start~).
7172
1. Let _escaped_ be the empty String.
7273
1. Let _codeUnits_ be UTF16EncodeCodePoint(_c_).

0 commit comments

Comments
 (0)