mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge.
This commit is contained in:
commit
2a902f1084
@ -566,6 +566,7 @@ ObjectWrapperParent::CPOW_NewEnumerate(JSContext *cx, JSObject *obj,
|
||||
|
||||
switch (enum_op) {
|
||||
case JSENUMERATE_INIT:
|
||||
case JSENUMERATE_INIT_ALL:
|
||||
self->Manager()->RequestRunToCompletion();
|
||||
return self->NewEnumerateInit(cx, statep, idp);
|
||||
case JSENUMERATE_NEXT:
|
||||
|
@ -3789,6 +3789,8 @@ JS_ClearScope(JSContext *cx, JSObject *obj)
|
||||
for (key = JSProto_Null; key < JSProto_LIMIT * 3; key++)
|
||||
JS_SetReservedSlot(cx, obj, key, JSVAL_VOID);
|
||||
}
|
||||
|
||||
js_InitRandom(cx);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSIdArray *)
|
||||
|
@ -1065,15 +1065,16 @@ proxy_create(JSContext *cx, uintN argc, jsval *vp)
|
||||
JSObject *handler;
|
||||
if (!(handler = NonNullObject(cx, vp[2])))
|
||||
return false;
|
||||
JSObject *proto, *parent;
|
||||
JSObject *proto, *parent = NULL;
|
||||
if (argc > 1 && !JSVAL_IS_PRIMITIVE(vp[3])) {
|
||||
proto = JSVAL_TO_OBJECT(vp[3]);
|
||||
parent = proto->getParent();
|
||||
} else {
|
||||
JS_ASSERT(VALUE_IS_FUNCTION(cx, vp[0]));
|
||||
proto = NULL;
|
||||
parent = JSVAL_TO_OBJECT(vp[0])->getParent();
|
||||
}
|
||||
if (!parent)
|
||||
parent = JSVAL_TO_OBJECT(vp[0])->getParent();
|
||||
JSObject *proxy = NewProxyObject(cx, &JSScriptedProxyHandler::singleton, OBJECT_TO_JSVAL(handler),
|
||||
proto, parent);
|
||||
if (!proxy)
|
||||
|
Loading…
Reference in New Issue
Block a user