facebookarchive/prepack
View on GitHubFuse adjacent JOIN_GENERATORS with same path condition
Open
#2,565 opened on Sep 22, 2018
Instant Renderenhancementhelp wantedlevel 2 (easy)
Repository metrics
- Stars
- (14,268 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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.)