From 93124c9eb8cb3c05659e5791583e08ae70002f6e Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 25 Mar 2014 17:31:03 +0100 Subject: [PATCH] Don't export Node from loose parser, reuse existing Node's proto Issue #92 --- acorn_loose.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acorn_loose.js b/acorn_loose.js index 5f3780b633..79cc15f616 100644 --- a/acorn_loose.js +++ b/acorn_loose.js @@ -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};