-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
v24.xIssues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
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
tpetry and jokester
Metadata
Metadata
Assignees
Labels
v24.xIssues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.