搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to build SpiderMonkey as library for application to use?

  • 2 回覆
  • 2 有這個問題
  • 18 次檢視
  • 最近回覆由 jasminefsb

more options

I have read the public documention on mozilla docs. But it doesn't work. I still cannot learn how to build the SpiderMonkey JS Engine successfully. I try to contact your developer but failed. So I write a forum here. Please help!

I have read the public documention on mozilla docs. But it doesn't work. I still cannot learn how to build the SpiderMonkey JS Engine successfully. I try to contact your developer but failed. So I write a forum here. Please help!

被選擇的解決方法

Hi, I am just another user like you.

Firefox is open source, but to be honest, it's terrible kind of open source, to get the source code you have to clone the whole huge mozilla-central repo from mercurial. Compiling them is a painful procedure. There are various versions of spidermoney engine for Linux distributions from their perspective repository though. I see you are using Windows 10, WSL might help, but don't know.


If you just want to just grab and execute the binary, go here: Index of /pub/firefox/releases/

Grab the version, go to jsshell, for example, in F 79.0b9: https://ftp.mozilla.org/pub/firefox/releases/79.0b9/jsshell/

Another link that might help: SpiderMonkey https://firefox-source-docs.mozilla.org/js/build.html


Another downside is that although Firefox is open source and very nice browser, the JS is terribly slow (compared to NodeJS). The GC is horrible. No syntax highlighting in the console. No eager evaluation for code you write (so far), but the browser supports it. The GC is terrible in the browser as well, and less performant than Chromium ( also open source ;) ) or Chromium based browsers.

I will suggest you to try out open source NodeJS and get all the nice features that spidermonkey lacks...

從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

Hi, I am just another user like you.

Firefox is open source, but to be honest, it's terrible kind of open source, to get the source code you have to clone the whole huge mozilla-central repo from mercurial. Compiling them is a painful procedure. There are various versions of spidermoney engine for Linux distributions from their perspective repository though. I see you are using Windows 10, WSL might help, but don't know.


If you just want to just grab and execute the binary, go here: Index of /pub/firefox/releases/

Grab the version, go to jsshell, for example, in F 79.0b9: https://ftp.mozilla.org/pub/firefox/releases/79.0b9/jsshell/

Another link that might help: SpiderMonkey https://firefox-source-docs.mozilla.org/js/build.html


Another downside is that although Firefox is open source and very nice browser, the JS is terribly slow (compared to NodeJS). The GC is horrible. No syntax highlighting in the console. No eager evaluation for code you write (so far), but the browser supports it. The GC is terrible in the browser as well, and less performant than Chromium ( also open source ;) ) or Chromium based browsers.

I will suggest you to try out open source NodeJS and get all the nice features that spidermonkey lacks...

由 Sourav 於 修改

more options

@Sourav Thanks for your help! Although I have tried the way shown in the mozilla docs, I still cannot build spidermonkey successfully :( In fact, what I want to do is to use SpiderMonkey to build a JavaScript runtime like node.js. Unfortunately, I encountered this problem.