In the ECMAScript lexical grammar, regular expression literal flags [https://tc39.es/ecma262/#prod-RegularExpressionLiteral] are defined as a sequence of IdentifierPart, each of which is either an ASCII dollar sign, zero-width joiner or non-joiner, backslash-u escape sequence, or code point with the Unicode property “ID_Continue” [https://tc39.es/ecma262/#prod-IdentifierPart]. However, WhiteSpace and LineTerminator characters with code points above the Latin-1 Supplement block (none of which are matched by IdentifierPart) are incorrectly misinterpreted as flags rather than insignificant token separators. https://jsfiddle.net/w5dnrke2/1/
<rdar://problem/80884238>
Created attachment 435182 [details] Patch
Comment on attachment 435182 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435182&action=review > JSTests/test262/expectations.yaml:-1963 > -test/language/white-space/after-regular-expression-literal-em-quad.js: Nice progression!
Comment on attachment 435182 [details] Patch Thank you!
Committed r280825 (240388@main): <https://commits.webkit.org/240388@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435182 [details].