summaryrefslogtreecommitdiff
path: root/quickjs.c
diff options
context:
space:
mode:
Diffstat (limited to 'quickjs.c')
-rw-r--r--quickjs.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}