I've tried to run a generated .js file under rhino and it stopped at the line:
Module["arguments"]=process["argv"].slice(2) I think that's a node.js dependency right there. I have no idea how to run emscripten-generated .js files under the various js implementations, are there any tutorials? I think it would be hard, as node.js is closely coupled with v8. About the .html file: probably there are no node.js dependencies in the generated script? On Monday, July 28, 2014 4:19:06 PM UTC+2, jj wrote: > > Not sure how well Emscripten applications run in env.js, but for the .html > -> .js part, the code that you have in the default shell.html file is > completely optional, and it's also possible to move all that to a separate > file that is evaluated before the main .js, or prepend the contents to the > beginning of the main .js file. > > What do you mean by node.js dependencies? Do you refer to Rhino having > node.js dependencies? Or Emscripten-compiled output has node.js > dependencies? > > The idea of the generated .js files is that it should be possible to be > run under various JavaScript shells (browser, node.js, SpiderMonkey, v8), > so if you are trying to run it in Rhino and something fails, perhaps you > are able to patch up the assumptions and provide a pull request to add > support for execution under Rhino? > > > 2014-07-28 17:05 GMT+03:00 <[email protected] <javascript:>>: > >> Seeing a C++ program running under the JVM has been an old wish of mine. >> One day I thought I could compile an emscipten-generated .js file into a >> .java file using rhino, but alas, the 64k method limit struck. But... it is >> also possible to interpret javascript under Rhino, so I've also tried that, >> but alas, there are the node.js dependencies. A new development is the >> avatar project from java8, which is node.js compatible - I haven't tried >> that yet. Would it be possible to extract the .js from a generated .html >> page, slap env.js into the mix and interpret the whole thing under rhino? >> Would this be possible and how to do it? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
