1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fixes getString

This commit is contained in:
Yury Delendik 2013-02-23 11:35:18 -06:00
parent 4247339d28
commit 95e5429707
2 changed files with 17 additions and 0 deletions

View file

@ -360,6 +360,7 @@ var Lexer = (function LexerClosure() {
do {
ch = stream.getChar();
switch (ch) {
case null:
case undefined:
warn('Unterminated string');
done = true;
@ -378,6 +379,7 @@ var Lexer = (function LexerClosure() {
case '\\':
ch = stream.getChar();
switch (ch) {
case null:
case undefined:
warn('Unterminated string');
done = true;
@ -427,10 +429,12 @@ var Lexer = (function LexerClosure() {
break;
default:
str += ch;
break;
}
break;
default:
str += ch;
break;
}
} while (!done);
return str;