Skip to content

Commit 209b20e

Browse files
committed
[js] Remove a check for a method that's uneeded in our model
1 parent 1f6e45a commit 209b20e

File tree

1 file changed

+1
-6
lines changed
  • src/vm/js/nqp-runtime

1 file changed

+1
-6
lines changed

src/vm/js/nqp-runtime/io.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ op.print = function(arg) {
3939
};
4040

4141
op.say = function(arg) {
42-
if (process.stdout) {
43-
process.stdout.write(arg);
44-
process.stdout.write('\n');
45-
} else {
46-
console.log(arg);
47-
}
42+
process.stdout.write(arg + '\n');
4843
return arg;
4944
};
5045

0 commit comments

Comments
 (0)