Skip to content

Commit c4a1f92

Browse files
committed
Add support for LibJS
1 parent 0ca75ac commit c4a1f92

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export ESHOST_PATH_QUICKJS=`which qjs-for-eshost`;
4343
export ESHOST_PATH_SPIDERMONKEY=`which spidermonkey`;
4444
export ESHOST_PATH_V8=`which v8`;
4545
export ESHOST_PATH_XS=`which xs`;
46+
export ESHOST_PATH_LIBJS=`which serenity-js`;
4647

4748
npm install -g eshost-cli;
4849

@@ -54,6 +55,7 @@ eshost --add "quickjs" qjs $ESHOST_PATH_QUICKJS;
5455
eshost --add "spidermonkey" jsshell $ESHOST_PATH_SPIDERMONKEY;
5556
eshost --add "v8" d8 $ESHOST_PATH_V8;
5657
eshost --add "xs" xs $ESHOST_PATH_XS;
58+
eshost --add "libjs" serenity-js $ESHOST_PATH_LIBJS;
5759
```
5860

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

275278
* 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).
276279

lib/host-manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ const VU_HOST_DETAILS = {
135135
qjs: ['QuickJS', 'quickjs-run-test262', 'qjs', ['embedded']],
136136
v8: ['V8', 'v8', 'd8', ['web']],
137137
xs: ['Moddable XS', 'xs', 'xs', ['embedded']],
138+
libjs: ['Serenity LibJS', 'serenity-js', 'serenity-js', ['']],
138139
},
139140
jsvu: {
140141
chakra: ['ChakraCore', 'chakra', 'ch', ['web']],

0 commit comments

Comments
 (0)