Re: [v8-users] Re: Where are let / const objects stored?

2018-06-22 Thread Gonzalo Diethelm
Jakob, I can see why that is the case for lexical scoped variables. Can you point me to more docs (LOL) or examples of how to traverse these Context objects? I will also check Zac's suggestion of looking at the debugging interface. Cheers! On Thursday, June 21, 2018 at 11:31:24 PM UTC+2,

Re: [v8-users] Re: Where are let / const objects stored?

2018-06-21 Thread Jakob Kummerow
Variable allocation is complicated. In short, Function-local variables are allocated on the stack. When nested closures refer to them, they get allocated in a Context object. On Thu, Jun 21, 2018 at 12:15 AM Zac Hansen wrote: > I don't know the answer, but they are accessible via the debugging