Commit 9e85be8f authored by Rob Swindell's avatar Rob Swindell

Setter needs to return true even when the scan pointer is NULL

(e.g. when run as a timed event) - this bug was introduced in the "Fix sub[] property setter" crash bug fix 2 commits ago.
This fixes the "TypeError: sub.code is undefined" error.
parent 48709dcb
Pipeline #1116 passed with stage
in 16 minutes and 44 seconds
......@@ -315,7 +315,7 @@ static JSBool js_sub_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict, j
subscan_t* scan = p->subscan;
if(scan == NULL)
return JS_FALSE;
return JS_TRUE;
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