Closed Bug 1026113 Opened 10 years ago Closed 2 years ago

declaring "console" var makes window.console undefined

Categories

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

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Benjamin, Unassigned)

References

Details

In Firefox 29 and Chrome, this code alerts "object":

    var console;
    alert(typeof console);

In Firefox 30+, it alerts "undefined". Likely this is a result of the move to WebIDL (bug 965860). I sort of suspect the new behavior is more spec-compliant, but this did break a website I'm working on.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML

This works now.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.