[Webkit-unassigned] [Bug 273254] New: Regex replacement differs from v8

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 25 10:47:21 PDT 2024


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

            Bug ID: 273254
           Summary: Regex replacement differs from v8
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dylan.conway567 at gmail.com

The following text and regex will fail to replace. Using v8 it will match and replace successfully.

```
console.log("<TData = SettingsControllerGetAllResponse>(".replace(/(?<=TData = |<)(\w+(?:Error|Response))/g, "foo"));
```

Received output:
"<TData = SettingsControllerGetAllResponse>("

Expected output:
"<TData = foo>("


This example is minified from: https://github.com/oven-sh/bun/issues/10508

-- 
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/20240425/9d45f1d9/attachment.htm>


More information about the webkit-unassigned mailing list