From 9bf72cf75822044ae314b4646db9aefb1bd38284 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 23 Apr 2017 20:05:22 +0800 Subject: 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 --- test/input/invalid/var.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/input/invalid/var.js (limited to 'test/input/invalid/var.js') 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; +} -- cgit v1.2.3