Status: Accepted Owner: [email protected] Labels: Type-Bug Priority-High
New issue 1583 by [email protected]: Incorrect scope chain for hoisted functions in optimizing compiler.
http://code.google.com/p/v8/issues/detail?id=1583 This prevents us from rolling V8 into Chromium. Test case: function f() { try { throw 0; } catch (e) { try { var x = { a: 'hest' }; x.f = function (e) { print(x.a); }; } catch (e) { } } return x; } var o = f(); for (var i = 0; i < 3; ++i) o.f(); %OptimizeFunctionOnNextCall(o.f); o.f(); Prints: hest hest hest undefined -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
