Closed Bug 1633664 Opened 3 months ago Closed 3 months ago

Make it a compile error to delete a GC thing pointer

Categories

(Core :: JavaScript: GC, task)

task
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

Currently it's possible to attempt to delete a GC thing pointer. In debug builds I got an assertion from ~GCPtr when I tried to delete a JSObject. Ideally this would not compile at all.

Deleting the delete operator seems to work.

Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a3112156594
Make it a compile error to delete a GC thing pointer r=jandem
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.