SpiderNode: Node.js on SpiderMonkey
Right now we're focused on using this project in the Positron project. This means that we will need to finish SpiderShim to the extent necessary for Node.js to work. In the future, we may look into finishing implementing the features of the V8 API that Node.js does not use, in order to provide a V8 API shim layer out of the box in SpiderMonkey. The SpiderShim code is being developed with that long term goal in mind.
How it works
To enable building and running Node.js with SpiderMonkey, a V8 API shim (SpiderShim) is created on top of the SpiderMonkey API. This is based on Microsoft's node-chakracore, but it doesn't share much code with it besides the build system integration.
The build system integration can be improved.
We're actively working on this, so if you're interested in the status of this project, please check here again soon.
How to build
Before building please make sure you have the prerequisites for building Node.js as documented here.
Building on any OS other than Linux or OS X has not been tested.
./configure --engine=spidermonkey make
Note that right now the build will fail as stated above when linking Node. Building the SpiderShim test requires invoking the linker command manually.