- 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
c3635861f63931255c7a953bccbb0e2e90cc75aa.
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,