Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for LibJS #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ export ESHOST_PATH_QUICKJS=`which qjs-for-eshost`;
export ESHOST_PATH_SPIDERMONKEY=`which spidermonkey`;
export ESHOST_PATH_V8=`which v8`;
export ESHOST_PATH_XS=`which xs`;
export ESHOST_PATH_LIBJS=`which serenity-js`;

npm install -g eshost-cli;

eshost --add "chakra" ch $ESHOST_PATH_CHAKRA;
eshost --add "engine262" engine262 $ESHOST_PATH_ENGINE262;
eshost --add "hermes" hermes $ESHOST_PATH_HERMES;
eshost --add "javascriptcore" jsc $ESHOST_PATH_JAVASCRIPTCORE;
eshost --add "libjs" serenity-js $ESHOST_PATH_LIBJS;
eshost --add "quickjs" qjs $ESHOST_PATH_QUICKJS;
eshost --add "spidermonkey" jsshell $ESHOST_PATH_SPIDERMONKEY;
eshost --add "v8" d8 $ESHOST_PATH_V8;
Expand Down Expand Up @@ -268,6 +270,7 @@ Host types are [those provided by eshost](https://github.com/bterlson/eshost#esh
| Nashorn | `nashorn` |
| Node | `node` |
| QuickJS | `qjs` <sup>1</sup> |
| Serenity LibJS | `serenity-js`, `libjs` |
| SpiderMonkey | `jsshell`, `spidermonkey`, `sm` |
| V8 | `d8`, `v8` |
| XS | `xs` |
Expand Down
1 change: 1 addition & 0 deletions lib/host-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const VU_HOST_DETAILS = {
jsc: ['JavaScriptCore', 'jsc', 'jsc', ['web']],
jsshell: ['SpiderMonkey', 'sm', 'jsshell', ['web']],
qjs: ['QuickJS', 'quickjs-run-test262', 'qjs', ['embedded']],
libjs: ['Serenity LibJS', 'serenity-js', 'serenity-js', ['']],
v8: ['V8', 'v8', 'd8', ['web']],
xs: ['Moddable XS', 'xs', 'xs', ['embedded']],
},
Expand Down