On Tue Apr 15 17:27:51 2025 +0000, Jacek Caban wrote:
We don't need to store window reference, we have `get_script_global` now. I hope hope we can avoid a new functiton type.
Sadly I'm not sure if it's possible. I can't reuse `HostConstructor` as the type (say, by adding a new field) since its lifetime is tied to the mshtml object (it has addref/release), and the only other existing function type I can reuse is HostFunction, as the others have different props and the like, which I can't use since it expects tid and works on the "this" pointer, whereas create is bound to the constructor.
I can't use BindFunction for this reason (props) and also because it passes through DISPATCH_CONSTRUCT. Any ideas?