aboutsummaryrefslogtreecommitdiff
path: root/test/sandbox.js
AgeCommit message (Collapse)Author
2017-06-10suppress false positives for-in loops (#2080)Alex Lam S.L
fixes #2079
2017-06-10fix portability of `sandbox.run_code()` on Node.js 0.1x (#2078)Alex Lam S.L
2017-06-04fix `AST_Function` scope invariance (#2052)Alex Lam S.L
improve function name hack in `run_code()`
2017-05-18make `expect_stdout` node version specific (#1963)Alex Lam S.L
... via semver string on `node_version` label.
2017-05-14fix bugs with getter/setter (#1926)Alex Lam S.L
- `reduce_vars` - `side_effects` - property access for object - `AST_SymbolAccessor` as key names enhance `test/ufuzz.js` - add object getter & setter - property assignment to setter - avoid infinite recursion in setter - fix & adjust assignment operators - 50% `=` - 25% `+=` - 2.5% each for the rest - avoid "Invalid array length" - fix `console.log()` - bypass getter - curb recursive reference - deprecate `-E`, always report runtime errors
2017-04-23improve parser under "use strict" (#1836)Alex Lam S.L
- `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-07extend ufuzz generator (#1783)Alex Lam S.L
- property access - property assignment - allow bare expression within try-block - normalise `Error` in `console.log()` - generate more unary expressions - add parenthesis to enforce precedence - adjust variable reuse/creation - add parameters to function declaration & expression - add return expression - add trivial arguments to function call
2017-04-03workaround Node.js bugs (#1775)Alex Lam S.L
Wrap test code in IIFE before passing to `vm` fixes #1768 fixes #1771
2017-04-03extend `test/ufuzz.js` (#1769)Alex Lam S.L
New expressions: - property access - array literal - object literal Miscellaneous: - reduce execution timeout - test `toplevel` and `mangleProperties`
2017-04-01implement `test/sandbox.js` (#1749)Alex Lam S.L
- `test/run-tests.js` and `test/ufuzz.js` now shares the same `run_code()` and `same_stdout()` - re-enable fuzzer to generate top-level `NaN`, `Infinity` & `undefined` - attempt to show beautified output only when `run_code()` output is preserved