Don't export Node from loose parser, reuse existing Node's proto

Issue #92
This commit is contained in:
Marijn Haverbeke
2014-03-25 17:31:03 +01:00
parent e5439847fd
commit 93124c9eb8

View File

@@ -198,8 +198,7 @@
this.start = start;
this.end = null;
}
exports.Node = Node;
Node.prototype = acorn.Node.prototype;
function SourceLocation(start) {
this.start = start || token.startLoc || {line: 1, column: 0};