diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-14 02:10:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-14 02:10:34 +0800 |
commit | 3ca902258c24209699f0b5bd5b9654252e492272 (patch) | |
tree | da7dbf1bc1e3bd70e463da43d0f7ebc06a36b2db /test/mocha/getter-setter.js | |
parent | fd0951231cce6aa2710bdb4f0ff8a963596f842c (diff) | |
download | tracifyjs-3ca902258c24209699f0b5bd5b9654252e492272.tar.gz tracifyjs-3ca902258c24209699f0b5bd5b9654252e492272.zip |
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
Diffstat (limited to 'test/mocha/getter-setter.js')
-rw-r--r-- | test/mocha/getter-setter.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 + ")"; }; }; |