mirror of
https://github.com/bellard/quickjs.git
synced 2026-05-27 19:09:36 +00:00
added missing NULL pointer check (#504)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user