Commit 9314c48c authored by Rob Swindell's avatar Rob Swindell

Fix sub[] property setter - private data pointer type wrong

The private data pointer is no longer a subscan_t*. This likely explains the reported crashes when using DDMsgReader and the most recent changes (fixes) to the msg_area object.
parent e389f2e7
Pipeline #1114 passed with stage
in 17 minutes and 10 seconds
......@@ -308,10 +308,14 @@ static JSBool js_sub_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict, j
jsval idval;
int32 val=0;
jsint tiny;
subscan_t* scan;
struct js_msg_area_priv *p;
if((p=(struct js_msg_area_priv*)JS_GetPrivate(cx, obj))==NULL)
return JS_FALSE;
subscan_t* scan = p->subscan;
if(scan == NULL)
return JS_FALSE;
JS_IdToValue(cx, id, &idval);
tiny = JSVAL_TO_INT(idval);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment