fix corner case with export (#4871)

This commit is contained in:
Alex Lam S.L
2021-04-25 15:37:26 +01:00
committed by GitHub
parent a1a212f639
commit 80efaa2f33
2 changed files with 8 additions and 0 deletions

View File

@@ -1495,6 +1495,7 @@ function parse($TEXT, options) {
body.start = start;
body.end = prev();
} else {
handle_regexp();
body = expression();
semicolon();
}