Allow some keywords to be treated as identifier names; update ecmaVersion in benchmark.

This commit is contained in:
Ingvar Stepanyan
2014-07-26 08:56:22 +03:00
committed by Marijn Haverbeke
parent eb7ccea743
commit 82b9f30fc9
2 changed files with 9 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ numbers.</p>
<script>
function runAcorn(code, locations) {
acorn.parse(code, {locations: locations});
acorn.parse(code, {ecmaVersion: 6, locations: locations});
}
function runEsprima(code, locations) {
esprima.parse(code, {loc: locations});