[Bug 11838] In Gecko, Opera, and IE, the "name" property on Window is replaceable

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11838

--- Comment #10 from Kyle Simpson <w3c@getify.myspamkiller.com> 2011-02-19 01:44:05 UTC ---
At least in IE, I believe this will also overwrite/replace window.name with a
var called `name`:

    try {
       nonexistent();
    }
    catch (name) { }

As in IE, the variable in the catch-clause gets created as a variable in the
containing scope.

Also, what about:

    function name() {}

And (again, in IE, bug with NFE's):

    var a = function name(){};

And: 

    eval("var name = 12;");

And:

    var a = name = 12;

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 19 February 2011 01:44:07 UTC