prepack
prepack copied to clipboard
Fuse adjacent JOIN_GENERATORS with same path condition
This...
let x = __abstract("boolean", "(x)");
if (x) console.log("Hello");
if (x) console.log(" World");
currently prepacks to
(function () {
var _0 = x;
if (_0) {
console.log("Hello");
}
if (_0) {
console.log(" World");
}
})();
but should Prepack to
(function () {
var _0 = x;
if (_0) {
console.log("Hello");
console.log(" World");
}
})();
(Seen arising from actual product code.)