UglifyJS/test/input/reduce/setter.reduced.js

16 lines
230 B
JavaScript
Raw Normal View History

// (beautified)
({
set p(v) {
console.log(1 + .1 + .1);
}
}).p = 0;
// output: 1.2000000000000002
2020-03-01 05:04:21 +00:00
//
// minify: 1.2
2020-03-01 05:04:21 +00:00
//
// options: {
// "compress": {
// "unsafe_math": true
2020-03-01 05:04:21 +00:00
// },
// "mangle": false
// }