Only assign PluralRules property when calling addIntlExtras in test262 tests

RESOLVED FIXED in Firefox 54

Status

()

defect
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: anba, Assigned: anba)

Tracking

Trunk
mozilla54
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox54 fixed)

Details

Attachments

(1 attachment)

Avoids breaking test262 when other intl-extras overwrite default Intl properties, cf. bug 1329904, comment #32.
With this patch the Intl extras are first copied into a temporary object, and then we only add PluralRules to the standard Intl object instead of every Intl extra.

(js/src/tests/test262/intl402/PluralRules/shell.js is generated file from the test262 update script, it contains the content from js/src/tests/test262-intl-extras.js)
Attachment #8841170 - Flags: review?(gandalf)
Comment on attachment 8841170 [details] [diff] [review]
bug1342648.patch

thanks!
Attachment #8841170 - Flags: review?(gandalf) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a989a69ea61
Only define PluralRules constructor when calling addIntlExtras in test262 PluralRules tests. r=gandalf
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5a989a69ea61
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.