[Webkit-unassigned] [Bug 275672] New: Implement RegExp modifiers (stage3 proposal)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 19 14:36:59 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=275672
Bug ID: 275672
Summary: Implement RegExp modifiers (stage3 proposal)
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jarred at jarredsumner.com
The TC39 Regular Expression Pattern Modifiers for ECMAScript proposal has reached stage3 - https://github.com/tc39/proposal-regexp-modifiers
It shipped in V8 in Chrome 125/Edge 125
It adds syntax like the below:
```
/(?i:test)/.test('Test');
```
Currently, this throws an error like:
```
SyntaxError: Invalid regular expression: unrecognized character after (?
```
Related issue: https://github.com/oven-sh/bun/issues/11960
--
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/20240619/40dbb044/attachment-0001.htm>
More information about the webkit-unassigned
mailing list