JSC.js is a JavaScript engine which can run on top of you browser's JavaScript engine. It's based on the default JavaScript engine (JavaScriptCore) of WebKit and compiled with emscripten. Therefore, if you're using Safari, you can literally run its JavaScript engine on top of itself.
The size of JSC.js is around 3MB (compressed js and mem file).
Demo: Link
- install emscripten
- install python, ruby, ninja, etc.
- run
build/gn/download.bat
to download latestgn.exe
. - run
Source/JavaScriptCore/DerivedSources/gen.bat
to generate derived sources.
> gn gen out --args="target_os=wasm"
> ninja -C out
> gn gen out --args="target_os=\"win\""
> ninja -C out