Skip to content
Snippets Groups Projects
Commit 48709dcb authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1115 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment