Skip to content

Commit 95e0aa0

Browse files
committed
Reverse e140122
- remove temporary fix for MemorySanitizer: setting p->u.array.count to 0 silenced a warning in JS_GetPropertyValue on a hacky test agains the length of fast_array object. This hack was removed by commit c363586.
1 parent 1fe0414 commit 95e0aa0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

quickjs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14774,8 +14774,6 @@ static JSValue js_build_mapped_arguments(JSContext *ctx, int argc,
1477414774
if (JS_IsException(val))
1477514775
return val;
1477614776
p = JS_VALUE_GET_OBJ(val);
14777-
p->u.array.u.values = NULL;
14778-
p->u.array.count = 0;
1477914777

1478014778
/* add the length field (cannot fail) */
1478114779
pr = add_property(ctx, p, JS_ATOM_length,

0 commit comments

Comments
 (0)