Closed Bug 1342648 Opened 7 years ago Closed 7 years ago

Only assign PluralRules property when calling addIntlExtras in test262 tests

Categories

(Core :: JavaScript: Internationalization API, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(1 file)

Avoids breaking test262 when other intl-extras overwrite default Intl properties, cf. bug 1329904, comment #32.
Attached patch bug1342648.patchSplinter Review
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: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: