Add support for exporting async functions
This commit is contained in:
parent
c5ca7ee32c
commit
2506be7b1a
2
acorn.js
2
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user