Fix \v being treated as v in IE < 9
IE < 9 treats '\v' as 'v' instead of a vertical tab ('\u000b').
Read more: http://mathiasbynens.be/notes/javascript-escapes
This commit is contained in:
committed by
Marijn Haverbeke
parent
76be1f8eee
commit
a8a24f538b
2
acorn.js
2
acorn.js
@@ -826,7 +826,7 @@
|
||||
case 85: out += String.fromCharCode(readHexChar(8)); break; // 'U'
|
||||
case 116: out += "\t"; break; // 't' -> '\t'
|
||||
case 98: out += "\b"; break; // 'b' -> '\b'
|
||||
case 118: out += "\v"; break; // 'v' -> '\u000b'
|
||||
case 118: out += "\u000b"; break; // 'v' -> '\u000b'
|
||||
case 102: out += "\f"; break; // 'f' -> '\f'
|
||||
case 48: out += "\0"; break; // 0 -> '\0'
|
||||
case 13: if (input.charCodeAt(tokPos) === 10) ++tokPos; // '\r\n'
|
||||
|
||||
Reference in New Issue
Block a user