-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Description
Feature request
What is the expected behavior?
{
using resource = {
[Symbol.dispose] () {
console.log('dispose')
}
}
}
// output: disposeWhat is motivation or use case for adding/changing the behavior?
Node.js and browsers already natively support and can use this syntax.
https://v8.dev/features/explicit-resource-management
https://github.com/tc39/proposal-explicit-resource-management
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html
How should this be implemented in your opinion?
parse this code correctly
acornjs/acorn#1367
Are you willing to work on this yourself?
maybe
Reactions are currently unavailable