suppress invalid AST transform in --reduce-test (#4498)

This commit is contained in:
Alex Lam S.L
2021-01-03 02:34:46 +00:00
committed by GitHub
parent 110c1ac097
commit e8c04f8cb6
4 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
var o = {};
[ o[1 + .1 + .1] ] = [ 42 ];
console.log(o[1.2]);

View File

@@ -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
// }