[Pkg-javascript-commits] [node-acorn-jsx] 178/484: Don't export Node from loose parser, reuse existing Node's proto

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 93124c9eb8cb3c05659e5791583e08ae70002f6e
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Tue Mar 25 17:31:03 2014 +0100

    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 5f3780b..79cc15f 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};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list