コード例 #1
0
ファイル: RhinoEngine.java プロジェクト: oberhamsi/ringojs
 /**
  * Load a Javascript module into a module scope. This checks if the module has already been loaded
  * in the current context and if so returns the existing module scope.
  *
  * @param cx the current context
  * @param moduleName the module name
  * @param loadingScope the scope requesting the module
  * @return the loaded module's scope
  * @throws IOException indicates that in input/output related error occurred
  */
 public Scriptable loadModule(Context cx, String moduleName, Scriptable loadingScope)
     throws IOException {
   return mainWorker.loadModule(cx, moduleName, loadingScope);
 }