Fábio Santos

Results 162 comments of Fábio Santos

Hello! It looks like you're running this in an old node.JS version that doesn't support `class`, as this is valid syntax.

Interesting. Adding more passes doesn't fix this

I need a WTF JS label because I have no idea what the former is supposed to do :P

For sure, Terser is ostensibly a compiler not an opinionated lint and it has to accept anything. But this is cursed syntax even in comparison to things like `+!![]`

Just for fun, you can use setters to observe `.x` being set on that object ```js for ({ get x() { console.log('got x') }, set x(newX) { console.log('set x to',...

This logs 1, 2, 3 in sloppy mode ```js function xx(a) { for (arguments[0] of [1, 2, 3]) { console.log(a) } } xx(9) ```

I can't reproduce this. Is keep_classnames being applied to both compress and mangle steps? What version of Terser are you using?

This is related to how the AST is structured. The "finally" branch is a child of the "try" statement. Let me see what I can do about this

Marking this as an enhancement, maybe a min_prop_length option would do the trick

Yes, thanks for the reminder :)