[Webkit-unassigned] [Bug 227944] New: super-Latin1 white space and line terminator after regular expression literal misinterpreted as flags

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 14 00:58:50 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=227944

            Bug ID: 227944
           Summary: super-Latin1 white space and line terminator after
                    regular expression literal misinterpreted as flags
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: richard.gibson at gmail.com

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/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210714/06c2d5fc/attachment-0001.htm>


More information about the webkit-unassigned mailing list