From 2fb5a3c46ec8f5ff17e141595fd5f11d2e032118 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 26 Jan 2015 01:25:41 +1100 Subject: [PATCH] reference exports.Node so we can replace it if necessary --- acorn.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acorn.js b/acorn.js index 9e37092ace..e0029689b3 100644 --- a/acorn.js +++ b/acorn.js @@ -2170,7 +2170,7 @@ } function startNode() { - var node = new Node(); + var node = new exports.Node(); if (options.locations) node.loc = new SourceLocation(); if (options.directSourceFile) @@ -2189,7 +2189,7 @@ } function startNodeAt(pos) { - var node = new Node(), start = pos; + var node = new exports.Node(), start = pos; if (options.locations) { node.loc = new SourceLocation(); node.loc.start = start[1]; @@ -2562,7 +2562,7 @@ // Parse a program. Initializes the parser, reads any number of // statements, and wraps them in a Program node. Optionally takes a // `program` argument. If present, the statements will be appended - // to its body instead of creating a new node. + // to its body instead of creating a new exports.Node. function parseTopLevel(node) { var first = true;