remove allowImportExportEverywhere

This commit is contained in:
Sebastian McKenzie
2015-01-13 00:10:12 +11:00
parent ea627ed57c
commit fbb150cfc1
2 changed files with 13 additions and 9 deletions

View File

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