Closed Bug 874788 Opened 11 years ago Closed 10 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
Attachment #8371510 - Flags: review?(peterv)
Whiteboard: [need review]
Attachment #8371510 - Flags: review?(peterv) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/05d5f2815f92
Flags: in-testsuite?
Whiteboard: [need review]
https://hg.mozilla.org/mozilla-central/rev/05d5f2815f92
Status: NEW → RESOLVED
Closed: 10 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: