Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leobalter/a122cce216ca42552e91f5ff8ab1f48b to your computer and use it in GitHub Desktop.
Save leobalter/a122cce216ca42552e91f5ff8ab1f48b 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