Closed Bug 1825005 Opened 1 year ago Closed 1 year ago

Implement String.prototype.toWellFormed and String.prototype.isWellFormed

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

(Keywords: dev-doc-complete)

Attachments

(3 files)

Keywords: dev-doc-needed

We have SIMD-accelerated functions for these as mozilla::Utf16ValidUpTo and mozilla::EnsureUtf16ValiditySpan. The XPCOM string version is at https://searchfox.org/mozilla-central/rev/0907529ff72c456ddb47839f5f7ba16291f28dce/xpcom/string/nsReadableUtils.h#413

Currently the pref is only available in nightly build, and is off by
default.

Attachment #9331313 - Attachment description: Bug 1825005 - test262 update for is/toWellFormed. → Bug 1825005 - Part 3: test262 update for is/toWellFormed.
Pushed by allstars.chh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b20fed8a9f06
Part 1: Add pref for well-formed-unicode-strings. r=arai
https://hg.mozilla.org/integration/autoland/rev/8fa5345c09a4
Part 2: Impl isWellFormed and toWellFormed. r=arai
https://hg.mozilla.org/integration/autoland/rev/c0749b3ad809
Part 3: test262 update for is/toWellFormed. r=arai
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

Documentation changes for this can be tracked in the following GitHub issue: https://github.com/mdn/content/issues/27173

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: