From 3ca902258c24209699f0b5bd5b9654252e492272 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 14 May 2017 02:10:34 +0800 Subject: fix bugs with getter/setter (#1926) - `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 --- test/mocha/getter-setter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mocha/getter-setter.js') diff --git a/test/mocha/getter-setter.js b/test/mocha/getter-setter.js index 83bf5792..fe0481b3 100644 --- a/test/mocha/getter-setter.js +++ b/test/mocha/getter-setter.js @@ -71,7 +71,7 @@ describe("Getters and setters", function() { var fail = function(data) { return function (e) { return e instanceof UglifyJS.JS_Parse_Error && - e.message === "Invalid getter/setter name: " + data.operator; + e.message === "Unexpected token: operator (" + data.operator + ")"; }; }; -- cgit v1.2.3