Closed Bug 1037756 Opened 10 years ago Closed 10 years ago

Move cloneSingletons to CompartmentOptions

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: bholley, Assigned: bholley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Right now this thing is set up as a per-compartment override of a per-context default, but nobody ever changes the default on the context. That makes this very easy to fix.
Comment on attachment 8455488 [details] [diff] [review]
Move cloneSingletons to CompartmentOptions. v1

Review of attachment 8455488 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/jsapi.h
@@ +2597,5 @@
>          return *this;
>      }
>  
>  
> +    bool cloneSingletons(JSContext *cx) const { return cloneSingletons_; }

Remove the |cx| argument, r=me with that.
Attachment #8455488 - Flags: review?(jdemooij) → review+
https://hg.mozilla.org/mozilla-central/rev/3b0111ca90e2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: