|
@ -13,7 +13,7 @@ import ModuleScope from './ast/scopes/ModuleScope.js'; |
|
|
function tryParse ( code, comments, acornOptions, id ) { |
|
|
function tryParse ( code, comments, acornOptions, id ) { |
|
|
try { |
|
|
try { |
|
|
return parse( code, assign({ |
|
|
return parse( code, assign({ |
|
|
ecmaVersion: 6, |
|
|
ecmaVersion: 7, |
|
|
sourceType: 'module', |
|
|
sourceType: 'module', |
|
|
onComment: ( block, text, start, end ) => comments.push({ block, text, start, end }), |
|
|
onComment: ( block, text, start, end ) => comments.push({ block, text, start, end }), |
|
|
preserveParens: true |
|
|
preserveParens: true |
|
|