Closed Bug 660235 Opened 13 years ago Closed 12 years ago

Remove JSRESOLVE_DETECTING and replace with a special object that evaluates to false

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 792108

People

(Reporter: gal, Unassigned)

Details

To express document.all() in IDL we can't rely on the resolve magic any more. WebKit uses a special class that is caught in ValueToPrimitive on a slow path. We would match WebKit, and it would help our DOM bindings.
Brendan pointed out that we can model all as a random document.id property, for which we need a resolve hook onto the direct object (document instance, not document.prototype) anyway, so we can stick with the resolve machinery here. He also mentioned that TC39 doesn't like the magic -to-false or to-undefined conversion, and that its less compatible than what we do. Dropping the dependent bug for now.
No longer blocks: ParisBindings
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.