I run the following JS code in the Chrome console: // Version 67.0.3396.87 (Official Build) (64-bit)
var p = 11 p // returns 11 let q = 12 q // returns 12 const r = 13 r // returns 13 Now, from C++ code, I can look up p in the global context, and it is found; its value is, unsurprisingly, 11. On the other hand, q and r are not found in the global context. This is fine, I guess, since let / const have lexical scoping. My question is: how does Chrome / V8 find q and r? Where is it looking for them? Thanks! -- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.