Is it possible to load a runtime shared library into JavaScript and use it -
Is it possible to load runtime shared libraries in JavaScript and to use it? Is there a safety concern about allowing loading of a .so file?
In a web browser? I think it is impossible.
Server-side programming (eg node.js) is probably possible. Not sure about this
Well Java can sth like this
ScriptEngineManager manager = new ScriptEngineManager (); ScriptEngine Engine = manager.getEngineByName ("JavaScript"); String js = "var t =" + someJNIMethod () + ";" Engine.eval (js);
This is not practical, but possible.
Comments
Post a Comment