mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980558 - Enable extraWarnings on safe JS context (r=bholley)
This commit is contained in:
parent
64db4271e0
commit
0ba2b34d57
@ -176,6 +176,9 @@ XPCJSContextStack::InitSafeJSContext()
|
||||
MOZ_CRASH();
|
||||
JSAutoRequest req(mSafeJSContext);
|
||||
ContextOptionsRef(mSafeJSContext).setNoDefaultCompartmentObject(true);
|
||||
#ifdef DEBUG
|
||||
ContextOptionsRef(mSafeJSContext).setExtraWarnings(true);
|
||||
#endif
|
||||
|
||||
JS_SetErrorReporter(mSafeJSContext, xpc::SystemErrorReporter);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user