diff --git a/acorn.js b/acorn.js index 0e9b364416..188df622d6 100644 --- a/acorn.js +++ b/acorn.js @@ -2542,7 +2542,7 @@ function parseExport(node) { next(); // export var|const|let|function|class ...; - if (tokType === _var || tokType === _const || tokType === _let || tokType === _function || tokType === _class) { + if (tokType === _var || tokType === _const || tokType === _let || tokType === _function || tokType === _class || tokType === _async) { node.declaration = parseStatement(); node['default'] = false; node.specifiers = null;