[Pkg-javascript-commits] [node-acorn-jsx] 310/484: Indentation fix.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:48 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 074db16fb7ae737b5dc2757d9e7f26ef296d9e32
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Sun Oct 26 17:35:49 2014 +0200

    Indentation fix.
---
 test/driver.js | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/test/driver.js b/test/driver.js
index f948fe6..539fc00 100644
--- a/test/driver.js
+++ b/test/driver.js
@@ -15,14 +15,14 @@
     var comments;
 
     function onComment(block, text, start, end, startLoc, endLoc) {
-        comments.push({
-          block: block,
-          text: text,
-          start: start,
-          end: end,
-          startLoc: { line: startLoc.line, column: startLoc.column },
-          endLoc: { line: endLoc.line, column: endLoc.column }
-        });
+      comments.push({
+        block: block,
+        text: text,
+        start: start,
+        end: end,
+        startLoc: { line: startLoc.line, column: startLoc.column },
+        endLoc: { line: endLoc.line, column: endLoc.column }
+      });
     }
 
     var opts = {locations: true, onComment: onComment};
@@ -32,7 +32,7 @@
       try {
         comments = [];
         if (test.options && !test.options.onComment) test.options.onComment = onComment;
-        var ast = parse(test.code, test.options || opts);
+        var ast = acorn.parse(test.code, test.options || opts);
         if (test.error) callback("fail", test.code,
                                  "Expected error message: " + test.error + "\nBut parsing succeeded.");
         else if (test.assert) {

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