From 3127d6ba049685219d41780cdf92f25d99fba218 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 19 Oct 2023 11:23:49 -0700 Subject: [PATCH] [spec] append code points, not strings, to escapedList See https://github.com/tc39/proposal-regex-escaping/issues/60#issuecomment-1767243322 --- spec.emu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.emu b/spec.emu index bd8d0ce..1543f40 100644 --- a/spec.emu +++ b/spec.emu @@ -60,7 +60,7 @@ contributors: Jordan Harband 1. Append code unit U+0033 (DIGIT THREE) to _escapedList_. 1. Else if _toEscape_ contains _c_ or _c_ is matched by |WhiteSpace|, then 1. Append code unit U+005C (REVERSE SOLIDUS) to _escapedList_. - 1. Append the elements of UTF16EncodeCodePoint(_c_) to _escapedList_. + 1. Append _c_ to _escapedList_. 1. Return CodePointsToString(_escapedList_).