Skip to content

Commit 7871170

Browse files
committed
stdout.write uses encoding directly instead of setting encoding first
1 parent 1f463aa commit 7871170

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/jslib/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,7 @@ define(function (require) {
13411341
var out = new java.io.PrintStream(java.lang.System.out, true, 'UTF-8');
13421342
out.println(content);
13431343
} else if (e === 'node') {
1344-
process.stdout.setEncoding('utf8');
1345-
process.stdout.write(content);
1344+
process.stdout.write(content, 'utf8');
13461345
} else {
13471346
console.log(content);
13481347
}

0 commit comments

Comments
 (0)