Skip to content

Instantly share code, notes, and snippets.

@caiolima
Created March 6, 2017 01:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save caiolima/d7c538fa936dc62ed3cd7841bbe04dc3 to your computer and use it in GitHub Desktop.
Save caiolima/d7c538fa936dc62ed3cd7841bbe04dc3 to your computer and use it in GitHub Desktop.
Running JSC on test262-harness
First you need to build JSC. Since it is a module in WebKit, you can follow these instructions to get the code and learn how to build it.
https://webkit.org/getting-started/#building-webkit
After the machine setup, you can build JSC as a stand-alone CLI program running
```<path_to_webkit>/Tools/Scripts/build-jsc —release```
It will build jsc into ```<path_to_webkit>/WebKitBuild/Release```
Now, to run it using test262-harness, you need to configure an env var “DYLD_FRAMEWORK_PATH=<path_to_webkit>/WebKitBuild/Release”. To do that, I execute following command:
```export DYLD_FRAMEWORK_PATH=<path_to_webkit>/WebKitBuild/Release```
and then run
```test262-harness --hostType jsc --hostPath '<path_to_webkit>/WebKitBuild/Debug/jsc' 'test/language/**/*.js'```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment