Skip to content

Commit

Permalink
Add support for LibJS
Browse files Browse the repository at this point in the history
  • Loading branch information
IdanHo committed Oct 18, 2022
1 parent 7fed791 commit 9305d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 9305d16

Please sign in to comment.