diff options
Diffstat (limited to 'test/input/reduce')
-rw-r--r-- | test/input/reduce/destructured_assign.js | 3 | ||||
-rw-r--r-- | test/input/reduce/destructured_assign.reduced.js | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/input/reduce/destructured_assign.js b/test/input/reduce/destructured_assign.js new file mode 100644 index 00000000..26e1580b --- /dev/null +++ b/test/input/reduce/destructured_assign.js @@ -0,0 +1,3 @@ +var o = {}; +[ o[1 + .1 + .1] ] = [ 42 ]; +console.log(o[1.2]); diff --git a/test/input/reduce/destructured_assign.reduced.js b/test/input/reduce/destructured_assign.reduced.js new file mode 100644 index 00000000..887810d4 --- /dev/null +++ b/test/input/reduce/destructured_assign.reduced.js @@ -0,0 +1,17 @@ +// (beautified) +var o = {}; + +[ o[1 + .1 + .1] ] = []; + +console.log(o); +// output: { '1.2000000000000002': undefined } +// +// minify: { '1.2': undefined } +// +// options: { +// "compress": { +// "unsafe_math": true +// }, +// "mangle": false, +// "validate": true +// }
\ No newline at end of file |