From e850be7c8e8d28e736444b3bc16f707a942be0b7 Mon Sep 17 00:00:00 2001 From: andycall Date: Mon, 13 Oct 2025 02:45:12 -0700 Subject: [PATCH] fix: fix readonly type error for setting the value --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index e30d393..7e8d723 100644 --- a/quickjs.c +++ b/quickjs.c @@ -9398,7 +9398,7 @@ int JS_SetPropertyInternal(JSContext *ctx, JSValueConst obj, if (likely(p == p1)) { ret = JS_DefineProperty(ctx, this_obj, prop, val, JS_UNDEFINED, JS_UNDEFINED, - JS_PROP_HAS_VALUE); + JS_PROP_C_W_E); JS_FreeValue(ctx, val); return ret; } else {