diff options
author | Charlie Gordon <github@chqrlie.org> | 2024-02-13 09:45:58 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-02 18:12:23 +0100 |
commit | fedc82851aad3e1198a1c9abb879ef7ed5009bf2 (patch) | |
tree | a31d58b08e06d95e6c67b7dde61d5239cde622be /lib | |
parent | 7e3ce0701a838bc01939996d1df9411961441457 (diff) | |
download | chawan-fedc82851aad3e1198a1c9abb879ef7ed5009bf2.tar.gz |
Reverse e140122202cc24728b394f8f90fa2f4a2d7c397e
- 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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/quickjs/quickjs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index 5f031f3c..86985b57 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -14827,8 +14827,6 @@ static JSValue js_build_arguments(JSContext *ctx, int argc, JSValueConst *argv) 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, |