mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Finalize 'new' script objects in background when possible, bug 678048.
This commit is contained in:
parent
88486c366a
commit
bff5c4b010
@ -1532,6 +1532,9 @@ NewObjectWithType(JSContext *cx, types::TypeObject *type, JSObject *parent, gc::
|
||||
{
|
||||
JS_ASSERT(type == type->proto->newType);
|
||||
|
||||
if (CanBeFinalizedInBackground(kind, &js_ObjectClass))
|
||||
kind = GetBackgroundFinalizeKind(kind);
|
||||
|
||||
JSObject* obj = js_NewGCObject(cx, kind);
|
||||
if (!obj)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user