JSC.js

JavaScriptCore on WebAssembly

Github stars Tracking Chart

JSC.js is a JavaScript engine which can run on top of you browser's JavaScript engine. It's based on the JavaScript engine (JavaScriptCore) of WebKit and compiled to wasm with emscripten. Therefore, if you're using Safari, you are literally running its JavaScript engine on top of itself.

The size of JSC.wasm is around 4MB (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

Main metrics

Overview
Name With Ownermbbill/JSC.js
Primary LanguageC++
Program languageMakefile (Language Count: 14)
Platform
License:
所有者活动
Created At2017-09-15 04:57:40
Pushed At2021-10-12 18:13:41
Last Commit At2021-10-12 11:13:37
Release Count0
用户参与
Stargazers Count472
Watchers Count14
Fork Count27
Commits Count83
Has Issues Enabled
Issues Count14
Issue Open Count7
Pull Requests Count4
Pull Requests Open Count1
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private