Skip to content

Commit

Permalink
Fix bug in benchmark
Browse files Browse the repository at this point in the history
Since previous commit, Acorn is no longer properly benchmarked
when locations are on.
  • Loading branch information
marijnh authored and JacopKane committed Jan 11, 2018
1 parent 36f977c commit badb37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babylon/test/bench.html
Expand Up @@ -35,7 +35,7 @@ <h1>Acorn/Esprima/UglifyJS speed comparison</h1>

<script>
function runAcorn(code, locations) {
acorn.parse(code, {linePositions: locations});
acorn.parse(code, {locations: locations});
}
function runEsprima(code, locations) {
esprima.parse(code, {loc: locations});
Expand Down

0 comments on commit badb37f

Please sign in to comment.