Closed Bug 874788 Opened 12 years ago Closed 11 years ago

Allow WebIDL proxy objects to emulate undefined

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: Ms2ger, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.
This is going to need JS engine support. This object needs to be a proxy _and_ emulate undefined, which we don't support right now in the JS engine.
Assignee: nobody → general
Component: DOM → JavaScript Engine
Summary: Allow WebIDL interfaces to emulate undefined → Allow WebIDL proxy objects to emulate undefined
It's conceivable that the right answer is a new proxy JSClass that sets the relevant bit, or something... Certainly seems like the path of least resistance. Ccing some people who know proxies.
I guess another option is to add a proxy trap for this and have EmulatesUndefined() call that as needed, since we always send proxies through the slow OOL path for this stuff anyway?
I think Waldo added the undefined emulation, so probably the right one to ask about this.
Assignee: general → bzbarsky
Eric made this possible in bug 924720.
Component: JavaScript Engine → DOM
Depends on: 924720
Whiteboard: [need review]
Attachment #8371510 - Flags: review?(peterv) → review+
Flags: in-testsuite?
Whiteboard: [need review]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: