[Webkit-unassigned] [Bug 206776] New: Incomplete braced quantifiers should be banned in unicode patterns

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 24 15:50:18 PST 2020


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

            Bug ID: 206776
           Summary: Incomplete braced quantifiers should be banned in
                    unicode patterns
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Trivial
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
  /{1/u

Expected:
  SyntaxError thrown

Actual:
  RegExp instance

ECMA262:
  https://tc39.es/ecma262/#prod-annexB-Term (/u flag precludes the use of ExtendedAtom)

  Term[U, N] ::
    [~U] ExtendedAtom[?N]

  ExtendedAtom[N] ::
    InvalidBracedQuantifier

Test262:
  https://test262.report/browse/annexB/built-ins/RegExp/prototype/compile/pattern-string-invalid-u.js
  https://test262.report/browse/built-ins/RegExp/unicode_restricted_incomple_quantifier.js
  https://test262.report/browse/language/literals/regexp/u-invalid-extended-pattern-char.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/20200124/6b72a530/attachment.htm>


More information about the webkit-unassigned mailing list