From e8c04f8cb691ee132c7d3b0b10db0d7da8ce3bf6 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 3 Jan 2021 02:34:46 +0000 Subject: suppress invalid AST transform in `--reduce-test` (#4498) --- test/input/reduce/destructured_assign.reduced.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/input/reduce/destructured_assign.reduced.js (limited to 'test/input/reduce/destructured_assign.reduced.js') 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 -- cgit v1.2.3