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

RESOLVED FIXED in mozilla20

Status

()

defect
RESOLVED FIXED
7 years ago
4 months ago

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Tracking

unspecified
mozilla20
x86
macOS
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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: 7 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.