summaryrefslogtreecommitdiff
path: root/quickjs.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-03-22 10:54:21 +0100
committerFabrice Bellard <fabrice@bellard.org>2025-03-22 10:54:21 +0100
commit49413985ebb00315443597f5e04d0df1418ffdbc (patch)
tree4fd5a86fb329f50a6a3ba7a88d3c15f8897737e3 /quickjs.c
parent9f65ef1950c61e20800b8f84da2082b35bbb894c (diff)
downloadquickjs-49413985ebb00315443597f5e04d0df1418ffdbc.tar.gz
quickjs-49413985ebb00315443597f5e04d0df1418ffdbc.zip
fixed hash_map_resize() - added Map/WeakMap in microbench
Diffstat (limited to 'quickjs.c')
-rw-r--r--quickjs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/quickjs.c b/quickjs.c
index 09ba0e3..d35a333 100644
--- a/quickjs.c
+++ b/quickjs.c
@@ -46186,7 +46186,6 @@ static void map_hash_resize(JSContext *ctx, JSMapState *s)
sizeof(new_hash_table[0]) * new_hash_size, &slack);
if (!new_hash_table)
return;
- new_hash_size += slack / sizeof(*new_hash_table);
for(i = 0; i < new_hash_size; i++)
init_list_head(&new_hash_table[i]);