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 c4a752c
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,6 +43,7 @@ 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;

Expand All @@ -54,6 +55,7 @@ eshost --add "quickjs" qjs $ESHOST_PATH_QUICKJS;
eshost --add "spidermonkey" jsshell $ESHOST_PATH_SPIDERMONKEY;
eshost --add "v8" d8 $ESHOST_PATH_V8;
eshost --add "xs" xs $ESHOST_PATH_XS;
eshost --add "libjs" serenity-js $ESHOST_PATH_LIBJS;
```

Manually, using `jsvu`:
Expand Down Expand Up @@ -271,6 +273,7 @@ Host types are [those provided by eshost](https://github.com/bterlson/eshost#esh
| SpiderMonkey | `jsshell`, `spidermonkey`, `sm` |
| V8 | `d8`, `v8` |
| XS | `xs` |
| Serenity LibJS | `serenity-js`, `libjs` |

* 1: **DO NOT USE `~/.jsvu/quickjs` WITH ESHOST-CLI**. The main `quickjs` binary does not support the [eshost runtime API](https://github.com/bterlson/eshost#runtime-library). For more, see [Install and Configure Hosts](#install-and-configure-hosts).

Expand Down
1 change: 1 addition & 0 deletions lib/host-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const VU_HOST_DETAILS = {
qjs: ['QuickJS', 'quickjs-run-test262', 'qjs', ['embedded']],
v8: ['V8', 'v8', 'd8', ['web']],
xs: ['Moddable XS', 'xs', 'xs', ['embedded']],
libjs: ['Serenity LibJS', 'serenity-js', 'serenity-js', ['']],
},
jsvu: {
chakra: ['ChakraCore', 'chakra', 'ch', ['web']],
Expand Down

0 comments on commit c4a752c

Please sign in to comment.