[Pkg-javascript-commits] [node-acorn-jsx] 145/484: Use correct paragraph separator for newline

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:17 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 ba8da57d165551e23a93c23baf4f86088f3c95eb
Author: Martin Carlberg <martin at carlberg.org>
Date:   Fri Sep 6 20:17:25 2013 +0200

    Use correct paragraph separator for newline
    
    0x2089(8329) is Subscript nine
    0x2028(8232) is Line separator
    0x2029(8233) is Paragraph separator
---
 acorn.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acorn.js b/acorn.js
index 375d44b..43584ba 100644
--- a/acorn.js
+++ b/acorn.js
@@ -500,7 +500,7 @@
     var start = tokPos;
     var startLoc = options.onComment && options.locations && new line_loc_t;
     var ch = input.charCodeAt(tokPos+=2);
-    while (tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8329) {
+    while (tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233) {
       ++tokPos;
       ch = input.charCodeAt(tokPos);
     }
@@ -857,7 +857,7 @@
           }
         }
       } else {
-        if (ch === 13 || ch === 10 || ch === 8232 || ch === 8329) raise(tokStart, "Unterminated string constant");
+        if (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) raise(tokStart, "Unterminated string constant");
         out += String.fromCharCode(ch); // '\'
         ++tokPos;
       }

-- 
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