Closed Bug 895863 Opened 11 years ago Closed 9 years ago

Globally self hosted objects do not have enumerable properties

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1146979

People

(Reporter: anba, Unassigned)

References

Details

Attachments

(1 file)

test case: --- new Intl.Collator("de", {caseFirst: "blubb"}) --- Expected: RangeError: invalid value blubb for option caseFirst Actual: No error I've tracked this down to line 1023 in Intl.js, the for-in loop is not executed because all (own) properties of the 'collatorKeyMappings' object are not enumerable.
Paging Dr. Lindenberg, as I know neither what's the expected behavior, nor, if we have an error here, how to fix it. Also cc-ing Waldo, being the reviewer and all.
Flags: needinfo?(mozillabugs)
Attached patch stupid_patch.diff (deleted) — Splinter Review
Here's a pretty stupid patch to trigger the expected behaviour, that means to throw the RangeError. It does not fix the underlying issue about non-enumerable properties.
This is caused by the incomplete fix for bug 822080 - see bug 822080 comment 4.
Flags: needinfo?(mozillabugs)
Status: UNCONFIRMED → NEW
Depends on: 822080
Ever confirmed: true
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: