From: Fabrice Bellard Date: Thu, 13 Mar 2025 15:04:38 +0000 (+0100) Subject: JS_SetPropertyInternal(): avoid recursing thru the prototypes if the property is... X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=6474793e381eb52242c1c6b443d909f09777d63f;p=quickjs.git JS_SetPropertyInternal(): avoid recursing thru the prototypes if the property is found in a prototype --- diff --git a/quickjs.c b/quickjs.c index d7dc6d7..4f42f06 100644 --- a/quickjs.c +++ b/quickjs.c @@ -8601,6 +8601,8 @@ int JS_SetPropertyInternal(JSContext *ctx, JSValueConst obj, goto retry2; } else if (!(prs->flags & JS_PROP_WRITABLE)) { goto read_only_prop; + } else { + break; } } }