Open
Description
13.7.92 contains an explicit resource management fix, v8/v8@3d750c2.
Currently, the feature is broken entirely if the [await] using
variable gets bound to a closure, with the disposer never being invoked.
{
using disposable = {
[Symbol.dispose]() { console.log('disposed!') },
};
// Create an arbitrary closure binding `disposable`
() => { disposable };
}
When running the above example in v24.x, after the closure is created, V8 does not invoke the disposer on exiting the block.
cc: @targos