upgrade acorn

This commit is contained in:
Sebastian McKenzie 2014-12-27 21:24:34 +11:00
parent add0a7d5fe
commit 7fcd8ea642
2 changed files with 10 additions and 9 deletions

View File

@ -221,14 +221,15 @@ exports.parse = function (opts, code, callback) {
var tokens = []; var tokens = [];
var ast = acorn.parse(code, { var ast = acorn.parse(code, {
allowReturnOutsideFunction: true, allowImportExportEverywhere: true,
ecmaVersion: opts.experimental ? 7 : 6, allowReturnOutsideFunction: true,
playground: opts.playground, ecmaVersion: opts.experimental ? 7 : 6,
strictMode: true, playground: opts.playground,
onComment: comments, strictMode: true,
locations: true, onComment: comments,
onToken: tokens, locations: true,
ranges: true onToken: tokens,
ranges: true
}); });
estraverse.attachComments(ast, comments, tokens); estraverse.attachComments(ast, comments, tokens);

View File

@ -35,7 +35,7 @@
"test": "make test" "test": "make test"
}, },
"dependencies": { "dependencies": {
"acorn-6to5": "0.9.1-14", "acorn-6to5": "0.9.1-16",
"ast-types": "~0.6.1", "ast-types": "~0.6.1",
"chokidar": "0.11.1", "chokidar": "0.11.1",
"commander": "2.5.0", "commander": "2.5.0",