Skip to content

Commit 07fc1bd

Browse files
bakkotljharb
authored andcommitted
also escape line terminators
1 parent 4221ff9 commit 07fc1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.emu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ contributors:
6060
1. Return the string-concatenation of 0x005C (REVERSE SOLIDUS) and UTF16EncodeCodePoint(_c_).
6161
1. Let _otherPunctuators_ be the string-concatenation of *",-=<>#&!%:;@~'`"* and the code unit 0x0022 (QUOTATION MARK).
6262
1. Let _toEscape_ be StringToCodePoints(_otherPunctuators_).
63-
1. If _toEscape_ contains _c_ or _c_ is matched by |WhiteSpace|, then
63+
1. If _toEscape_ contains _c_ or _c_ is matched by |WhiteSpace| or |LineTerminator|, then
6464
1. If _c_ ≤ 0xFF, then
6565
1. Let _hex_ be Number::toString(𝔽(_c_), 16).
6666
1. Return the string-concatenation of the code unit 0x005C (REVERSE SOLIDUS), *"x"*, and StringPad(_hex_, 2, *"0"*, ~start~).

0 commit comments

Comments
 (0)