public final Object evaluateReader ( Scriptable scope , Reader in , String sourceName , int lineno , Object securityDomain ) throws IOException { Script script = compileReader ( scope , in , sourceName , lineno , securityDomain ) ; if ( script != null ) { return script . exec ( this , scope ) ; } return null ; }
Evaluate a reader as JavaScript source .