private Script compileScript(Context cx, Scriptable scope, Source src) throws Exception { InputStream is = src.getInputStream(); Reader reader = new BufferedReader(new InputStreamReader(is)); // FIXME: scope or this.scope? Script compiledScript = cx.compileReader(this.scope, reader, src.getURI(), 1, null); return compiledScript; }
Thanks, Vadim