Don't export Node from loose parser, reuse existing Node's proto
Issue #92
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user