Closed Bug 818379 Opened 8 years ago Closed 8 years ago

Interface objects should have an own length property even when we're faking the function

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

This matters for Document, which is the first thing with a real constructor we've had to fake.

Spec says:

Interface objects for interfaces MUST have a property named “length” with
attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false } whose value is a Number.

For us I believe that means JSPROP_READONLY | JSPROP_PERMANENT.
Attachment #688629 - Flags: review?(peterv) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/53b604b60d25
Flags: in-testsuite?
Whiteboard: [need review]
Target Milestone: --- → mozilla20
https://hg.mozilla.org/mozilla-central/rev/53b604b60d25
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.