Skip to content
swannodette edited this page Sep 6, 2012 · 31 revisions

Google V8

Checkout the V8 project. Following the build instructions here

Set the V8_HOME environment variable to the path where d8 lives. You should now be able to run the tests from the ClojureScript source directory with:

Spidermonkey

Get the js-shell from here http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/. Set your SPIDERMONKEY_HOME environment variable.

JavaScriptCore

Down a WebKit nightly build. Update your shell profile to include the following:

DYLD_FRAMEWORK_PATH=/Applications/WebKit.app/Contents/Frameworks/10.7/
export DYLD_FRAMEWORK_PATH
PATH=$PATH:/Applications/WebKit.app/Contents/Frameworks/10.7/JavaScriptCore.framework/Resources
JSC_HOME=/Applications/WebKit.app/Contents/Frameworks/10.7/JavaScriptCore.framework/Resources
export JSC_HOME

Running the tests

./script/test

Don't forget

Besides the tests it's important to make sure that the Browser REPL hasn't accidentally been broken. Double-check using the sample found in the depository.

Clone this wiki locally