From 074db16fb7ae737b5dc2757d9e7f26ef296d9e32 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Sun, 26 Oct 2014 17:35:49 +0200 Subject: [PATCH] Indentation fix. --- test/driver.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/driver.js b/test/driver.js index f948fe656..539fc0030 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) {