mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 736686 - Part 1: Make dictionary initializers callable off main thread. r=khuey
This commit is contained in:
parent
63ed9dae81
commit
749ec9839a
@ -429,8 +429,11 @@ def write_cpp(iface, fd):
|
||||
" }\n"
|
||||
" NS_ENSURE_STATE(aVal->isObject());\n\n"
|
||||
" JSObject* obj = &aVal->toObject();\n"
|
||||
" nsCxPusher pusher;\n"
|
||||
" NS_ENSURE_STATE(pusher.Push(aCx, false));\n"
|
||||
" Maybe<nsCxPusher> pusher;\n"
|
||||
" if (NS_IsMainThread()) {\n"
|
||||
" pusher.construct();\n"
|
||||
" NS_ENSURE_STATE(pusher.ref().Push(aCx, false));\n"
|
||||
" }\n"
|
||||
" JSAutoRequest ar(aCx);\n"
|
||||
" JSAutoEnterCompartment ac;\n"
|
||||
" NS_ENSURE_STATE(ac.enter(aCx, obj));\n")
|
||||
|
Loading…
Reference in New Issue
Block a user