[Pkg-javascript-commits] [node-acorn-jsx] 21/484: Fix bug in benchmark

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:19:58 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 e8643188836288a2fbaf025452561d7912685acf
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Tue Oct 2 20:22:02 2012 +0200

    Fix bug in benchmark
    
    Since previous commit, Acorn is no longer properly benchmarked
    when locations are on.
---
 test/bench.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/bench.html b/test/bench.html
index fb42472..b763388 100644
--- a/test/bench.html
+++ b/test/bench.html
@@ -35,7 +35,7 @@ numbers.</p>
 
 <script>
   function runAcorn(code, locations) {
-    acorn.parse(code, {linePositions: locations});
+    acorn.parse(code, {locations: locations});
   }
   function runEsprima(code, locations) {
     esprima.parse(code, {loc: locations});

-- 
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