Closed
Bug 1339032
Opened 7 years ago
Closed 7 years ago
Update Intl legacy compromise semantics to match latest spec
Categories
(Core :: JavaScript: Internationalization API, defect)
Core
JavaScript: Internationalization API
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
21.70 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
The spec was updated to fix some minor issues, let's update our implementation accordingly.
Assignee | ||
Comment 1•7 years ago
|
||
This updates the Intl legacy constructor semantics with the changes from https://github.com/tc39/ecma402/commit/7eb2c2b149ede6c192d9ba683191b7f8d7d05158 and https://github.com/tc39/ecma402/pull/127 (adds [[Description]] to the Intl fallback symbol).
Attachment #8836669 -
Flags: review?(jwalden+bmo)
Comment 2•7 years ago
|
||
Comment on attachment 8836669 [details] [diff] [review] bug1339032.patch Review of attachment 8836669 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/tests/Intl/DateTimeFormat/unwrapping.js @@ -109,5 @@ > hasInstanceCalled = true; > return true; > }, configurable: true > }); > - let isUndefinedOrNull = thisValue !== undefined || thisValue !== null; Erk. This condition wasn't written correctly! This variable would always have been true. ::: js/src/tests/Intl/NumberFormat/unwrapping.js @@ -111,5 @@ > hasInstanceCalled = true; > return true; > }, configurable: true > }); > - let isUndefinedOrNull = thisValue !== undefined || thisValue !== null; This was buggy too.
Attachment #8836669 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e8f68ef78915c4926b81b6f0f6b8ab5c1f068843
Keywords: checkin-needed
Assignee | ||
Comment 4•7 years ago
|
||
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #2) > > - let isUndefinedOrNull = thisValue !== undefined || thisValue !== null; > > Erk. This condition wasn't written correctly! This variable would always > have been true. Psst, I tried to fix this one without attracting a lot of attention. :-)
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0429b0b495da Update Intl legacy constructor compromise semantics per the latest spec changes. r=Waldo
Keywords: checkin-needed
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0429b0b495da
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Comment 7•7 years ago
|
||
(In reply to André Bargull from comment #4) > Psst, I tried to fix this one without attracting a lot of attention. :-) I am wise to your ways. :-) The reviewer who let that in is clearly not to be trusted.
You need to log in
before you can comment on or make changes to this bug.
Description
•