Files
UglifyJS/test/input/invalid/var.js
Alex Lam S.L 9bf72cf758 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
2017-04-23 20:05:22 +08:00

9 lines
81 B
JavaScript

function f() {
var eval;
}
function g() {
"use strict";
var eval;
}