How is the template compiler to figure out i is a global reference?

LOTS of code.

That's the point.  The template compiler could be 50 lines using with.

On Jun 12, 2013, at 8:01 AM, Andreas Rossberg <[email protected]> wrote:

> On 12 June 2013 15:05, Michael Schwartz <[email protected]> wrote:
>> Inside the function, you have:
>> 
>> for (i=1; i<6; i++) {
>> 
>> Which sets a new property, i, on the global/window object.
>> 
>> Using with, it would set the new property on the o object
> 
> So just generate 'o.i' instead of 'i' there. ;)
> 
> /Andreas
> 
> -- 
> -- 
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-users" 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.
> 
> 

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" 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.


Reply via email to