refactor: rewrite init.js

This commit is contained in:
hyb1996
2018-02-27 16:32:10 +08:00
parent 235115edf3
commit a43ac939e9
2 changed files with 107 additions and 96 deletions

View File

@@ -33,7 +33,7 @@ public abstract class JavaScriptEngine extends ScriptEngine.AbstractScriptEngine
}
mRuntime = runtime;
mRuntime.engines.setCurrentEngine(this);
put("__runtime__", runtime);
put("runtime", runtime);
}