tc39 / proposal-explicit-resource-management

ECMAScript Explicit Resource Management
https://arai-a.github.io/ecma262-compare/?pr=3000
BSD 3-Clause "New" or "Revised" License
758 stars 30 forks source link

Web API integration #95

Open littledan opened 2 years ago

littledan commented 2 years ago

It is really great that the README here explains how it would make sense to integrate the disposal protocol into various web standards. Has the conversation with these web API maintainers begun, to get their point of view on this integration? Do we have any feedback from them here?

rbuckton commented 2 years ago

No, it has not. At least, nothing outside of any issues that have been posted in this repo.

littledan commented 2 years ago

I think, before Stage 3, this integration should be discussed in web standards bodies, e.g., by starting with an issue in the whatwg/html repository. The spec language on the web side would pretty simple, and I don't think we need to block on that (your listing of affected web APIs is already good enough), but I would like to come to a common understanding with web standards if they're happy to go in this direction. I believe this will give us relevant feedback on async disposal, in particular, since that is motivated partly by preventing a "conflation" that web APIs make now.

rbuckton commented 1 year ago

I opened https://github.com/whatwg/html/issues/8557 to discuss this with WHATWG

rbuckton commented 1 year ago

On a related note, I've also opened https://github.com/nodejs/node/issues/45658 to discuss adoption in NodeJS as well.