Skip to content

Commit

Permalink
Indentation fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser authored and marijnh committed Nov 12, 2014
1 parent d745bd7 commit 074db16
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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) {
Expand Down

0 comments on commit 074db16

Please sign in to comment.