From 80efaa2f331b2c3f3ec35218d1086830a39bec93 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 25 Apr 2021 15:37:26 +0100 Subject: fix corner case with `export` (#4871) --- lib/parse.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/parse.js') 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(); } -- cgit v1.2.3