Closed Bug 1458646 Opened 6 years ago Closed 6 years ago

Replace JS_NewStringCopyZ with NewStringCopyZ in Intl code

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox61 --- wontfix
firefox62 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

JS-engine internal code should directly call NewStringCopyZ instead of going through jsapi's JS_NewStringCopyZ.
Attached patch bug1458646.patchSplinter Review
Replaces JS_NewStringCopyZ with NewStringCopyZ in Intl code.

Also reports an error if ICU returns nullptr instead of silently treating nullptr as requests to create an empty string <https://searchfox.org/mozilla-central/rev/795575287259a370d00518098472eaa5b362bfa7/js/src/jsapi.cpp#5782-5783>.
Attachment #8972659 - Flags: review?(jwalden+bmo)
Attachment #8972659 - Flags: review?(jwalden+bmo) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f691b58a680
Replace JS_NewStringCopyZ with NewStringCopyZ in Intl code. r=Waldo
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5f691b58a680
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: