aboutsummaryrefslogtreecommitdiff
path: root/test/input
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-20 12:48:51 +0000
committerGitHub <noreply@github.com>2020-12-20 20:48:51 +0800
commit7aefe97083c63660cf0708e549aebce66248796b (patch)
treeb7bde3b849be0303ab6ca7118677a95767b3af68 /test/input
parent89198e0ad4e302546e0ec8b6653ee1b92ce09b1a (diff)
downloadtracifyjs-7aefe97083c63660cf0708e549aebce66248796b.tar.gz
tracifyjs-7aefe97083c63660cf0708e549aebce66248796b.zip
parse destructuring under strict mode correctly (#4429)
Diffstat (limited to 'test/input')
-rw-r--r--test/input/invalid/destructured_var.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/input/invalid/destructured_var.js b/test/input/invalid/destructured_var.js
new file mode 100644
index 00000000..8e882f7e
--- /dev/null
+++ b/test/input/invalid/destructured_var.js
@@ -0,0 +1,8 @@
+function f() {
+ var { eval } = null;
+}
+
+function g() {
+ "use strict";
+ var { eval } = 42;
+}