[Webkit-unassigned] [Bug 209528] New: \b escapes inside character classes should be valid in Unicode patterns

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 24 18:00:30 PDT 2020


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

            Bug ID: 209528
           Summary: \b escapes inside character classes should be valid in
                    Unicode patterns
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
  /[\b]/u.test("\u0008")

Expected:
  true

Actual:
  SyntaxError thrown

ECMA262:
  According to ClassEscape grammar (https://tc39.es/ecma262/#prod-ClassEscape), "b" comes before
  CharacterEscape :: IdentityEscape. Also, see the note in https://tc39.es/ecma262/#sec-classescape.

Test262:
  JSTests/test262/test/built-ins/RegExp/unicode_character_class_backspace_escape.js

-- 
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/20200325/835076f3/attachment-0001.htm>


More information about the webkit-unassigned mailing list