print() and newlines
Tal Liron
tal.liron at threecrickets.com
Mon Sep 9 08:51:47 PDT 2013
Beautiful!
For those curious, you can also do this programatically:
...
Options options = new Options( "nashorn", err );
options.set( "print.no.newline", true );
ErrorManager errors = new ErrorManager( err );
Context context = new Context( options, errors, out, err,
Thread.currentThread().getContextClassLoader() );
On 09/09/2013 11:42 PM, Marcus Lagergren wrote:
> I don't know, but you can use
>
>
> --print-no-newline (Print function will not print new line char.)
> param: [true|false] default: false
>
> for compatibility.
>
More information about the nashorn-dev
mailing list