Status: Accepted
Owner: [email protected]
CC: [email protected], [email protected]
Labels: Type-Bug Priority-Medium
New issue 1354 by [email protected]: Function name inference fails in a
number of cases
http://code.google.com/p/v8/issues/detail?id=1354
After studying the "Naming Anonymous JavaScript Functions" paper by S. M.
Ecole, J. J. Barton, C. Petitpierre, I identified several cases when
function name inference fails (doesn't infer a name, or infers an incorrect
name), and can be relatively easily fixed:
1. var fun1 = fun2 = function () {};
2. function Foo() {}
var foo = new Foo(function() {});
3. obj["method"] = function() {};
4. obj[methodName] = function() {};
5. obj[cond ? "method1" : "method2"] = function() {};
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev