SpiderMonkey is Mozilla's JavaScript engine written in C/C++. It is used in various Mozilla products, including Firefox, and is available under MPL/GPL/LGPL tri-license.

SpiderMonkey 1.8.5 is the most recent standalone source code release.  It implements JavaScript 1.8.5, and it is largely the same engine that shipped with Firefox 4. You can download full source code here: http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz (MD5 checksum: a4574365938222adca0a6bd33329cb32).  The next release, SpiderMonkey 1.8.7, is expected to occur soon, and SpiderMonkey 1.8.8 is in development.



SpiderMonkey Build Documentation How to get SpiderMonkey source code, build it, and run the test suite.
Introduction to the JavaScript shell

How to get, build, and use the JavaScript shell.

Running Automated JavaScript Tests How to run the JavaScript test suites.
Creating JavaScript tests How to add tests to the JavaScript test suites.
New to SpiderMonkey A guide to hacking on SpiderMonkey.
Setting up CDT to work on SpiderMonkey How to configure CDT to work on the SpiderMonkey code.


JSAPI User Guide This guide provides an overview of SpiderMonkey and describes how you can embed engine calls in your applications to make them JavaScript-aware.
JSAPI Phrasebook Shows the JSAPI translation of some commonly used JavaScript expressions and statements.
JSAPI Reference SpiderMonkey API reference.
Bytecode Reference SpiderMonkey bytecode reference.
JS Debugger API Guide A user guide to the new JavaScript Debugger API introduced in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) .
JS Debugger API Reference API reference for the Debugger object introduced in SpiderMonkey 1.8.6, which corresponds to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) .
JSDBGAPI Reference SpiderMonkey debugging API reference; this is for the debugging API from releases prior to SpiderMonkey 1.8.5, although it hasn't been removed.

Tips, tricks and philosophy

How to embed the JavaScript engine A bare-bones tutorial about embedding SpiderMonkey.
SpiderMonkey Garbage Collection Tips Tips on avoiding garbage collector pitfalls.
SpiderMonkey Internals A design overview and a file-by-file walkthrough of the implementation.
SpiderMonkey Internals: GC Separate internals article on the GC.
SpiderMonkey Internals: Thread Safety How SpiderMonkey's request model works inside.


Tags (2)

Edit tags

Attachments (0)


Attach file