diff --git a/lib/rhino-shim.js b/lib/rhino-shim.js index 1d75d478..b7dfb685 100644 --- a/lib/rhino-shim.js +++ b/lib/rhino-shim.js @@ -1,3 +1,4 @@ +/*global env: true, Packages: true */ /** * @overview A minimal emulation of the standard features of Node.js necessary * to get JSDoc to run. @@ -117,12 +118,12 @@ process = { }, stderr: { write: function(str) { - java.lang.System.err.write( String(str) ); + java.lang.System.err.print(str); } }, stdout: { write: function(str) { - java.lang.System.out.write( String(str) ); + java.lang.System.out.print(str); } } };