mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
commit
f94221a37f
2 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue