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

Merge pull request #2789 from yurydelendik/getString

Fixes getString
This commit is contained in:
Mack Duan 2013-02-25 14:33:07 -08:00
commit f94221a37f
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;