Commit 48709dcb authored by Rob Swindell's avatar Rob Swindell

Fix: sub[] property getter needs to return TRUE always

... even when there's no private data.

Should fix "TypeError: sub.code is undefined"
parent 9314c48c
Pipeline #1115 passed with stage
in 16 minutes and 12 seconds
......@@ -258,7 +258,7 @@ static JSBool js_sub_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
struct js_msg_area_priv *p;
if((p=(struct js_msg_area_priv*)JS_GetPrivate(cx, obj))==NULL)
return JS_FALSE;
return JS_TRUE;
subscan_t* scan = p->subscan;
JS_IdToValue(cx, id, &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