mirror of
https://github.com/bellard/quickjs.git
synced 2026-03-31 12:18:01 +00:00
fix: fix readonly type error for setting the value
This commit is contained in:
parent
f1139494d1
commit
e850be7c8e
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user