Skip to content

Commit 9305d16

Browse files
committed
Add support for LibJS
1 parent 7fed791 commit 9305d16

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,13 +43,15 @@ 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

4950
eshost --add "chakra" ch $ESHOST_PATH_CHAKRA;
5051
eshost --add "engine262" engine262 $ESHOST_PATH_ENGINE262;
5152
eshost --add "hermes" hermes $ESHOST_PATH_HERMES;
5253
eshost --add "javascriptcore" jsc $ESHOST_PATH_JAVASCRIPTCORE;
54+
eshost --add "libjs" serenity-js $ESHOST_PATH_LIBJS;
5355
eshost --add "quickjs" qjs $ESHOST_PATH_QUICKJS;
5456
eshost --add "spidermonkey" jsshell $ESHOST_PATH_SPIDERMONKEY;
5557
eshost --add "v8" d8 $ESHOST_PATH_V8;
@@ -268,6 +270,7 @@ Host types are [those provided by eshost](https://github.com/bterlson/eshost#esh
268270
| Nashorn | `nashorn` |
269271
| Node | `node` |
270272
| QuickJS | `qjs` <sup>1</sup> |
273+
| Serenity LibJS | `serenity-js`, `libjs` |
271274
| SpiderMonkey | `jsshell`, `spidermonkey`, `sm` |
272275
| V8 | `d8`, `v8` |
273276
| XS | `xs` |

lib/host-manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const VU_HOST_DETAILS = {
133133
jsc: ['JavaScriptCore', 'jsc', 'jsc', ['web']],
134134
jsshell: ['SpiderMonkey', 'sm', 'jsshell', ['web']],
135135
qjs: ['QuickJS', 'quickjs-run-test262', 'qjs', ['embedded']],
136+
libjs: ['Serenity LibJS', 'serenity-js', 'serenity-js', ['']],
136137
v8: ['V8', 'v8', 'd8', ['web']],
137138
xs: ['Moddable XS', 'xs', 'xs', ['embedded']],
138139
},

0 commit comments

Comments
 (0)