mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't try to waive Xray wrapper for primitives (604361, r=mrbkap).
--HG-- extra : transplant_source : W%8A%EA%CD%A0%9A%87%91%0F%F6%E6%9D%85%19%06%10%A3%1A%09%02
This commit is contained in:
parent
ec0f0943fa
commit
aefc3b6839
@ -677,7 +677,7 @@ jsd_GetValueParent(JSDContext* jsdc, JSDValue* jsdval)
|
||||
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
|
||||
return NULL;
|
||||
JS_BeginRequest(jsdc->dumbContext);
|
||||
call = JS_EnterCrossCompartmentCall(jsdc->dumbContext, jsdc->glob);
|
||||
call = JS_EnterCrossCompartmentCall(jsdc->dumbContext,obj);
|
||||
if(!call) {
|
||||
JS_EndRequest(jsdc->dumbContext);
|
||||
|
||||
|
@ -283,8 +283,8 @@ WrapperFactory::WrapLocationObject(JSContext *cx, JSObject *obj)
|
||||
bool
|
||||
WrapperFactory::WaiveXrayAndWrap(JSContext *cx, jsval *vp)
|
||||
{
|
||||
if (!JSVAL_IS_OBJECT(*vp))
|
||||
return true;
|
||||
if (JSVAL_IS_PRIMITIVE(*vp))
|
||||
return JS_WrapValue(cx, vp);
|
||||
|
||||
JSObject *obj = JSVAL_TO_OBJECT(*vp)->unwrap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user