2 ms·
V8 is just the JavaScript runtime, not a full browser environment (i.e., no DOM, etc.) If you want to use V8 headless, you can either use NodeJS or you can link
by zeroxfe 10y ago
V8 is just the JavaScript runtime, not a full browser environment (i.e., no DOM, etc.) If you want to use V8 headless, you can either use NodeJS or you can link it into your own C/C++ code to run JS scripts, which is what I did a while ago for a project that needed a scripting hook.
If you want to run a full browser environment headlessly, take a look at PhanthomJS or SlimerJS, or use one of the fake DOM thingies for Node.