开发者

Is there a way to use Google's v8 JavaScript engine as a standalone interpreter? [duplicate]

开发者 https://www.devze.com 2023-01-19 16:59 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: Running V8 Javascript Engine Standalone
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Running V8 Javascript Engine Standalone

I want to try a standalone JavaScript interpreter, rather than executing in Firefox 开发者_StackOverflow社区all the time. I did find spidermonkey by googling, which could be installed on ubuntu, but is there a way to use Google's v8 as a standalone interpreter?


Yup yup yup! You can download the V8 shell from Google and run it on its own:

http://code.google.com/apis/v8/build.html


edit: misread your question. Sorry xD, take a look at this post instead: Running V8 Javascript Engine Standalone

There you'll find instructions on how to build the interpreter.


Yes, v8 can run standalone. http://code.google.com/p/v8/

Detailed instructions for building v8 on Windows: http://code.google.com/p/v8/wiki/BuildingOnWindows


Not only can you run V8 standalone, there is a great project called node.js that adds some very useful libraries.


If you install node.js it gives you command line access to V8 (sans DOM)

Edit: Node ppa

0

精彩评论

暂无评论...
验证码 换一张
取 消