Re: Issue 5 in minijoe: For...In statement inside a function doesn't allow variable to be local.

0 views
Skip to first unread message

min...@googlecode.com

unread,
Mar 30, 2010, 6:06:21 AM3/30/10
to min...@googlegroups.com

Comment #1 on issue 5 by cwoffenden: For...In statement inside a function
doesn't allow variable to be local.
http://code.google.com/p/minijoe/issues/detail?id=5

This looks to be caused by the "fast locals" optimisation. Looking at the
generated bytecode, the variable
assigned in the for-in is set using CTX_SET after the ENUM, but is later
retrieved using a LCL_GET (which returns
undefined).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages