Add Symbol.dispose and Symbol.asyncDispose
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
People
(Reporter: regseb, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0
Steps to reproduce:
The Explicit Resource Management proposal adds two symbols: Symbol.dispose and Symbol.asyncDispose (https://github.com/tc39/proposal-explicit-resource-management#additions-to-symbol)
They should be added to Firefox so that they can be used in libraries. If the user imports the library into an environment that supports Explicit Resource Management: he'll be able to take advantage of it. If the user imports the library into Firefox: he won't be able to use Explicit Resource Management, but there will be no problem using the two symbols.
To reproduce, open devtools and execute:
Symbol.dispose
Symbol.asyncDispose
Actual results:
undefined
undefined
Expected results:
Symbol(Symbol.dispose)
Symbol(Symbol.asyncDispose)
Updated•3 months ago
|
Comment 1•3 months ago
|
||
Thanks for the report. We're planning to ship explicit resource management soon in bug 1967744 and that will make those symbols available as well. For what it's worth, these two symbols (without the rest of the feature) are already available in Firefox Nightly.
Description
•