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 3e9f4b3..1e82615 100644
--- a/quickjs.c
+++ b/quickjs.c
@@ -14774,6 +14774,8 @@ static JSValue js_build_mapped_arguments(JSContext *ctx, int argc,
if (JS_IsException(val))
return val;
p = JS_VALUE_GET_OBJ(val);
+ p->u.array.u.values = NULL;
+ p->u.array.count = 0;
/* add the length field (cannot fail) */
pr = add_property(ctx, p, JS_ATOM_length,