cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject JavaScriptInterpreter: bug or feature?
Date Thu, 20 Mar 2003 03:20:33 GMT
Can somebody knowledgable comment on the following method? Local 
variable scope is not used...


    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



Mime
View raw message