From: Fabrice Bellard Date: Sat, 7 Nov 2026 11:12:29 +0000 (+0100) Subject: correctly seal template objects when deserializing them (#598) X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=88130c06a6e400836200791cfa2c75a16a528619;p=quickjs.git correctly seal template objects when deserializing them (#598) --- diff --git a/quickjs.c b/quickjs.c index ccd86d4..d4ab4c3 100644 --- a/quickjs.c +++ b/quickjs.c @@ -40313,7 +40313,8 @@ static JSValue JS_ReadArray(BCReaderState *s, int tag) if (ret < 0) goto fail; } - JS_PreventExtensions(ctx, obj); + if (seal_template_obj(ctx, obj)) + goto fail; } return obj; fail: