Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to build SpiderMonkey as library for application to use?

  • 2 replies
  • 2 have this problem
  • 7 views
  • Last reply by 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!

Chosen solution

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...

Read this answer in context 👍 1

All Replies (2)

more options

Chosen Solution

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...

Modified by Sourav

Helpful?

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.

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.