upgrade acorn
This commit is contained in:
parent
add0a7d5fe
commit
7fcd8ea642
@ -221,6 +221,7 @@ exports.parse = function (opts, code, callback) {
|
|||||||
var tokens = [];
|
var tokens = [];
|
||||||
|
|
||||||
var ast = acorn.parse(code, {
|
var ast = acorn.parse(code, {
|
||||||
|
allowImportExportEverywhere: true,
|
||||||
allowReturnOutsideFunction: true,
|
allowReturnOutsideFunction: true,
|
||||||
ecmaVersion: opts.experimental ? 7 : 6,
|
ecmaVersion: opts.experimental ? 7 : 6,
|
||||||
playground: opts.playground,
|
playground: opts.playground,
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user