Skip to content

Commit 317a84e

Browse files
committed
Fixed a bug in Perl.outputLine
The "chan" argument is no longer prefixed to the output.
1 parent cb6b917 commit 317a84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/webperl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Perl.output = function (str,chan) { // can be overridden by the user
144144
}
145145
};
146146
Perl.outputLine = function (chan,text) { // internal function
147-
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
147+
if (arguments.length > 2) text = Array.prototype.slice.call(arguments,1).join(' ');
148148
Perl.output(text,chan);
149149
Perl.output("\n",chan);
150150
};

0 commit comments

Comments
 (0)