Closed Bug 1969242 Opened 3 months ago Closed 3 months ago

Add Symbol.dispose and Symbol.asyncDispose

Categories

(Core :: JavaScript Engine, enhancement)

Firefox 139
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1967744

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)

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

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.

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1967744
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.