v2.13.0
Unminify
-
Extract unrelated/inlined for loop variables:
for (var j = 0, i = 0; i < 3; i++) {}
->var j = 0; for (var i = 0; i < 3; i++) {}
-
Extract more sequence expressions:
while (a = (b = null, c));
->b = null; while (a = c);
a[1] = (b(), c());
->b(); a[1] = c();
-
Fixed a bug where
a = 1; b = 2;
was duplicated inif (1) for (a = 1, b = 2;;) {}
(#54)
Transpile
- Decompile default parameters from @babel/plugin-transform-parameters:
function f() {
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
var y = arguments.length > 1 ? arguments[1] : undefined;
}
->
function f(x = 1, y) {}
- Fixed getting stuck in some cases when trying to convert template literals
Deobfuscate
- Fixed
Cannot read properties of undefined (reading 'params')
due to dead code injection (#55)