Closed Bug 1587098 Opened 5 years ago Closed 5 years ago

Add a configuration flag to enable WeakRefs in the shell

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Add a flag to disable the weak references implementation by default.

The main point of this is to hide the weak references APIs from JS; we can still make changes to GC machinery non-configurable.

Assignee: nobody → jcoppeard

I was originally thinking of making this a built-time configure flag, but it would be simpler to make this a pref. This would also make it easier for people to experiment with it.

I'm proposing calling this javascript.options.weakrefs.

Summary: Add a configuration flag for WeakRefs → Add a preference to enable WeakRefs
Attachment #9103008 - Attachment description: Bug 1587098 - WIP: Add a pref to enable weak references, off by default → Bug 1587098 - Add a pref to enable support for weak references, off by default r?sfink r?mccr8
Attachment #9103008 - Attachment description: Bug 1587098 - Add a pref to enable support for weak references, off by default r?sfink r?mccr8 → Bug 1587098 - Add a shell option to enable support for weak references, off by default r?sfink
Attachment #9103008 - Attachment description: Bug 1587098 - Add a shell option to enable support for weak references, off by default r?sfink → Bug 1587098 - Add a shell option to enable support for weak references, off by default r=sfink
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f273ec2ec0ae
Add a shell option to enable support for weak references, off by default r=sfink
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Is it available as a pref javascript.options.weakrefs as was proposed in https://bugzilla.mozilla.org/show_bug.cgi?id=1587098#c1

(In reply to Sergey Rubanov from comment #5)
No, this is shell only for the moment. Sorry for the confusion.

Summary: Add a preference to enable WeakRefs → Add a preference to enable WeakRefs in the shell
Summary: Add a preference to enable WeakRefs in the shell → Add a configuration flag to enable WeakRefs in the shell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: