mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017030 - Part 4: Replace AutoPushJSContext in nsJSContext::InitClasses. r=bholley
This commit is contained in:
parent
da11aafb63
commit
ff160cb692
@ -39,6 +39,7 @@
|
||||
#include "nsXPCOMCIDInternal.h"
|
||||
#include "nsIXULRuntime.h"
|
||||
#include "nsTextFormatter.h"
|
||||
#include "ScriptSettings.h"
|
||||
|
||||
#include "xpcpublic.h"
|
||||
|
||||
@ -1632,7 +1633,9 @@ nsresult
|
||||
nsJSContext::InitClasses(JS::Handle<JSObject*> aGlobalObj)
|
||||
{
|
||||
JSOptionChangedCallback(js_options_dot_str, this);
|
||||
AutoPushJSContext cx(mContext);
|
||||
AutoJSAPI jsapi;
|
||||
JSContext* cx = jsapi.cx();
|
||||
JSAutoCompartment ac(cx, aGlobalObj);
|
||||
|
||||
// Attempt to initialize profiling functions
|
||||
::JS_DefineProfilingFunctions(cx, aGlobalObj);
|
||||
|
Loading…
Reference in New Issue
Block a user