Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ eshost host --list
┌──────────────┬─────────┬──────────────────────────────────────────────────┬──────┐
│ name │ type │ path │ args │
├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤
│ nashorn │ nashorn │ /usr/java/jdk1.8.0_66/bin/jjs │ │
├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤
│ v8 │ d8 │ /usr/bin/d8 │ │
├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤
│ jsc │ jsc │ /usr/bin/jsc │ │
├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤
│ node │ node │ /home/michael/.nvm/versions/node/v5.4.1/bin/node │ │
├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤
│ spidermonkey │ jsshell │ /usr/bin/js │ -e │
└──────────────┴─────────┴──────────────────────────────────────────────────┴──────┘
$ eshost -e "print(0)"
#### spidermonkey
#### jsc
0
#### v8
/tmp/116021-10945-td14fy.js:1: ReferenceError: Realm is not defined
this.global[name] = value; }, source: \"\"};Realm.shared = $;"};Realm.shar
^
ReferenceError: Realm is not defined
at /tmp/116021-10945-td14fy.js:1:1862
ReferenceError: Realm is not defined
#### node
0
#### nashorn
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment