Skip to content

magichim/JSC.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ScreenShot

Build

Preparation

  • install emscripten
  • install python, ruby, ninja, etc.
  • run build/gn/download.bat to download latest gn.exe.
  • run Source/JavaScriptCore/DerivedSources/gen.bat to generate derived sources.

Build with gn

> gn gen out --args="target_os=wasm"
> ninja -C out

Build test shell on Windows

> gn gen out --args="target_os=\"win\""
> ninja -C out

About

JavaScriptCore on WebAssembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.1%
  • C 16.6%
  • Ruby 1.6%
  • Python 1.2%
  • Objective-C++ 0.7%
  • JavaScript 0.6%
  • Other 1.2%