aboutsummaryrefslogtreecommitdiff
path: root/test/input/invalid/var.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-04-23 20:05:22 +0800
committerGitHub <noreply@github.com>2017-04-23 20:05:22 +0800
commit9bf72cf75822044ae314b4646db9aefb1bd38284 (patch)
treebf149011065d6c801217585f4d6bc813343fe0c7 /test/input/invalid/var.js
parent64d74432f6e475df921d0ec49c4d15e5d2ae891d (diff)
downloadtracifyjs-9bf72cf75822044ae314b4646db9aefb1bd38284.tar.gz
tracifyjs-9bf72cf75822044ae314b4646db9aefb1bd38284.zip
improve parser under "use strict" (#1836)
- `const` without value - `delete` of expression - redefining `arguments` or `eval` extend `test/ufuzz.js` - optionally generate "use strict" - improve handling of test cases with syntax errors - group IIFE generation - generate bare anonymous functions - workaround `console.log()` for `new function()` - generate expressions with `this` fixes #1810
Diffstat (limited to 'test/input/invalid/var.js')
-rw-r--r--test/input/invalid/var.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/input/invalid/var.js b/test/input/invalid/var.js
new file mode 100644
index 00000000..e3ccbe87
--- /dev/null
+++ b/test/input/invalid/var.js
@@ -0,0 +1,8 @@
+function f() {
+ var eval;
+}
+
+function g() {
+ "use strict";
+ var eval;
+}