Skip to content

v2.13.0

Compare
Choose a tag to compare
@j4k0xb j4k0xb released this 31 Jan 16:11
· 69 commits to master since this release
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 in if (1) for (a = 1, b = 2;;) {} (#54)

Transpile

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)