added missing NULL pointer check (#504)

This commit is contained in:
Fabrice Bellard 2026-05-14 15:43:42 +02:00
parent 9b90125510
commit c1ba371eda

@ -48100,6 +48100,8 @@ static BOOL check_regexp_getter(JSContext *ctx,
return FALSE;
if ((prs->flags & JS_PROP_TMASK) != JS_PROP_GETSET)
return FALSE;
if (!pr->u.getset.getter)
return FALSE;
return JS_IsCFunction(ctx, JS_MKPTR(JS_TAG_OBJECT, pr->u.getset.getter),
func, magic);
}