Closed Bug 1899717 Opened 1 year ago Closed 1 year ago

Calls to @@dispose at the time of disposal should not be observable by user code

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: debadree333, Assigned: debadree333)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The following code is a bug

let called = 0;
{
  using d = {
    get [Symbol.dispose]() {
      called++;
      return () => {};
    }
  };
}
Blocks: 1569081

Given the code is not enabled anywhere, making it a task.

Severity: -- → N/A
Status: UNCONFIRMED → NEW
Type: defect → task
Ever confirmed: true
Priority: -- → P3

This patch brings all the error handling and checks surrounding AddDisposable
into the implementation of the AddDisposable bytecode and also updates the
implementation to use DisposableResource Records.

Assignee: nobody → debadree333
Status: NEW → ASSIGNED
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/d5d4dd8af6a0 Make calls to @@dispose during disposal unobserveable to the user. r=arai
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: