fengari-lua / fengari-web

Provides everything you need to run Fengari in the browser.
MIT License
250 stars 19 forks source link

Fengari in rhino #46

Closed ghost closed 4 years ago

ghost commented 4 years ago

is it possible to use fengari in sandboxed javascript? if so may i ask how?

daurnimator commented 4 years ago

is it possible to use fengari in sandboxed javascript? if so may i ask how?

What do you mean sandboxed javascript?

ghost commented 4 years ago

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino

daurnimator commented 4 years ago

Rhino is just another javascript VM. Why is its sandbox unique to anything else?

ghost commented 4 years ago

well, i have no idea how i would load it in pure javascript. the "how to" section just tells you to use html. simply require()ing it gives me nothing

ghost commented 4 years ago

i also made this issue here because rhino does not support most es6 features.. i'm sure to use -web

daurnimator commented 4 years ago

i'm sure to use -web

fengari-web is about running fengari in a web browser. If you're not in a web browser (which is what Rhino sounds like), then you likely should be using plain fengari + possibly fengari-interop.

rhino does not support most es6 features

fengari should happily compile to ES5 by using babel or other translators.

ghost commented 4 years ago

question, which scripts are necessary? i don't want to make another issue for this on the main repo so asking here

daurnimator commented 4 years ago

question, which scripts are necessary?

necessary for what? each repository's readme explains what it does....

ghost commented 4 years ago

lemme just.. dump everything into babel