Closed Bug 1998177 Opened 1 month ago Closed 10 days ago

Normative: Don't call well-known Symbol methods for RegExp on primitive values

Categories

(Core :: JavaScript: Standard Library, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: dminor, Assigned: dminor)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

This normative change was approved at the February 2025 TC39 plenary. See https://github.com/tc39/ecma262/pull/3009.

Note that there's an initial implementation at https://phabricator.services.mozilla.com/D241314. Based upon comments there, we should probably remove the #ifdef and telemetry code and just make the changes.

We should coordinate landing this with V8 and JSC, it looks like they've already implemented the changes:

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → dminor
Duplicate of this bug: 1953619
Attachment #9527618 - Attachment is obsolete: true
Pushed by dminor@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a6cac184cf43 https://hg.mozilla.org/integration/autoland/rev/f862da9656fa Don't call well-known Symbol methods for regexp on primitives; r=jandem https://github.com/mozilla-firefox/firefox/commit/308fa93df32b https://hg.mozilla.org/integration/autoland/rev/34acf2c4e0ff Remove JS_regexp_symbol_protocol_on_primitive use counter; r=jandem https://github.com/mozilla-firefox/firefox/commit/663cd21c73e1 https://hg.mozilla.org/integration/autoland/rev/2d082de0848c Remove now unused CanOptimizeStringProtoSymbolLookup and OptimizeStringPrototypeSymbolsFuse; r=jandem
Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: