How does the chrome browser supply host objects to the native JavaScript environment? Are the host objects implemented in C++ and then linked with the V8 source code ?
How is the Window object made available for the programmer to use? Clearly, the JavaScript environment on the browser is different from the node.js environment. Node.js and chrome both use the v8 engine but they provide two different JavaScript environments. I was wondering how this was made possible.