You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
I don't yet know where this happens in the code, nor do I have a small repro yet but I thought I'd flag it early. When I run #397 on Prepack itself I'm getting two cases where properties are added to a function before it is initialized.
Maybe it has something to do with the normal serialization relying on hoisting but hoisting doesn't work with the .bind(...) optimization that tries to minimize duplicates.
The text was updated successfully, but these errors were encountered:
We don't generally rely on function hoisting, but if you hit this there's certainly a bug somewhere in the cycle breaking. I need some help to reproduce it...
Ok, this isn't repro of the same exact issue. Instead of the function being assigned to this is reading the not-yet-bound function. Seems related.
(function(){functionwrap(obj){functionA(){returnobj.hello();}functionB(){returnobj.world();}A.B=B;returnA;}letfooObj={};letbarObj={};letfooFn=wrap(fooObj);letbarFn=wrap(barObj);// Create a cycle fooObj.bar=barFn;barObj.foo=fooFn;global.foo=fooFn;})();
I don't yet know where this happens in the code, nor do I have a small repro yet but I thought I'd flag it early. When I run #397 on Prepack itself I'm getting two cases where properties are added to a function before it is initialized.
Maybe it has something to do with the normal serialization relying on hoisting but hoisting doesn't work with the
.bind(...)
optimization that tries to minimize duplicates.The text was updated successfully, but these errors were encountered: