Status: New
Owner: ----

New issue 1222 by [email protected]: function statement scope in incorrect.
http://code.google.com/p/v8/issues/detail?id=1222

------ test case -----

function foo() {
    if (1) {
        var a = 2;
        function f() { return 2; };
    } else {
        var a = 3;
        function f() { return 3; };
    }
    alert(a);
    alert(f);
}

foo();

----------------------

alert(a) prints 2 properly, but alert(f) prints function f() { return 3; } which is (according to MDC, I've not checked ecma I reckon) incorrect.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to