[Pkg-javascript-commits] [node-acorn-jsx] 110/484: Fix \v being treated as v in IE < 9

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit a8a24f538bdf88d73efac769355e3871696272c0
Author: Oskar Schöldström <public at oxy.fi>
Date:   Sat Mar 23 18:06:49 2013 +0200

    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
---
 acorn.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index fb7b734..fbd3c92 100644
--- a/acorn.js
+++ b/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'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list