aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-04-25 15:37:26 +0100
committerGitHub <noreply@github.com>2021-04-25 22:37:26 +0800
commit80efaa2f331b2c3f3ec35218d1086830a39bec93 (patch)
treeb5ad373328665649e1a7da5ef862e04923a7c9b6 /lib/parse.js
parenta1a212f6393f690180a606c0610a4ca9279522ad (diff)
downloadtracifyjs-80efaa2f331b2c3f3ec35218d1086830a39bec93.tar.gz
tracifyjs-80efaa2f331b2c3f3ec35218d1086830a39bec93.zip
fix corner case with `export` (#4871)
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 323769a2..cdd607a2 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1495,6 +1495,7 @@ function parse($TEXT, options) {
body.start = start;
body.end = prev();
} else {
+ handle_regexp();
body = expression();
semicolon();
}