Skip to content

Commit ebf56ea

Browse files
hoelzropmurias
authored andcommitted
Don't call setinputlinesep on JS
1 parent 045db6d commit ebf56ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/IO.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ sub open($filename, :$r, :$w, :$a, :$bin) {
1212
my $mode := $w ?? 'w' !! ($a ?? 'wa' !! 'r');
1313
my $handle := nqp::open($filename, $mode);
1414
#?if !parrot
15+
#?if !js
1516
nqp::setinputlinesep($handle, "\n") if $r;
17+
#?endif
1618
#?endif
1719
nqp::setencoding($handle, 'utf8') unless $bin;
1820
$handle;

0 commit comments

Comments
 (0)