Comment #3 on issue 3138 by [email protected]: Empty variable statement
ignored in with-statement
http://code.google.com/p/v8/issues/detail?id=3138
I think I understand this now:
When we have a with scope inside the function, both f get
context-allocated, f-fun the function name, and f-var the variable.
When we compile a function literal, a const variable with its name is
created and the function itself is assigned to it (parser.cc,
ParseFunctionLiteral). When the code for the toplevel code containing the
function literal is created, we generate an assignment of the function f to
f-fun, in the function's context. However, we somehow resolve to f-var
instead. So f-var gets the function assigned. That's the bug.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.