JSC.js

JavaScriptCore on WebAssembly

Github星跟踪图

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

主要指标

概览
名称与所有者mbbill/JSC.js
主编程语言C++
编程语言Makefile (语言数: 14)
平台
许可证
所有者活动
创建于2017-09-15 04:57:40
推送于2021-10-12 18:13:41
最后一次提交2021-10-12 11:13:37
发布数0
用户参与
星数472
关注者数14
派生数27
提交数83
已启用问题?
问题数14
打开的问题数7
拉请求数4
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?