DEV Community

Discussion on: πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

Collapse
 
daniel13rady profile image
Daniel Brady

Thanks for the overview!

Question for you and the group: at what point in this process are scopes and lookup tables created for the various variable bindings and the values the hold? πŸ€”

Since variable bindings and their declared values need to make it into the byte code, I would think this happens prior to running the interpreter. And it seems like that process would require access to either the raw tokens created by the byte stream decoder, or the AST generated by the parser, because the code needs to be 'crawled' in a meaningful way so as to identify the bindings that have been declared.

Can anyone clarify for me?