mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 670205 - Preserve JSOPTION_UNROOTED_GLOBAL in ContextHolder::ContextHolder (r=gal)
This commit is contained in:
parent
a38dd7526c
commit
ad7b144c59
@ -3412,6 +3412,7 @@ ContextHolder::ContextHolder(JSContext *aOuterCx, JSObject *aSandbox)
|
||||
{
|
||||
JSAutoRequest ar(mJSContext);
|
||||
JS_SetOptions(mJSContext,
|
||||
JS_GetOptions(mJSContext) |
|
||||
JSOPTION_DONT_REPORT_UNCAUGHT |
|
||||
JSOPTION_PRIVATE_IS_NSISUPPORTS);
|
||||
JS_SetGlobalObject(mJSContext, aSandbox);
|
||||
|
Loading…
Reference in New Issue
Block a user