|
|
|
@ -43,7 +43,7 @@ describe('parser', function() {
@@ -43,7 +43,7 @@ describe('parser', function() {
|
|
|
|
|
input.getByte = function(super_getByte) { |
|
|
|
|
// simulating end of file using null (see issue 2766)
|
|
|
|
|
var ch = super_getByte.call(input); |
|
|
|
|
return ch === 0x24 /* '$' */ ? -1 : ch; |
|
|
|
|
return (ch === 0x24 /* '$' */ ? -1 : ch); |
|
|
|
|
}.bind(input, input.getByte); |
|
|
|
|
var lexer = new Lexer(input); |
|
|
|
|
var result = lexer.getString(); |
|
|
|
|