]> git.kaiwu.me - quickjs.git/commit
Fix Map hash bug
authorCharlie Gordon <github@chqrlie.org>
Thu, 22 Feb 2024 18:31:57 +0000 (19:31 +0100)
committerCharlie Gordon <github@chqrlie.org>
Thu, 22 Feb 2024 18:31:57 +0000 (19:31 +0100)
commit27928ce49170a17170bb01649fc27624c0494b05
tree90d2bcad1795740479be5192e76a9ef5edac4612
parentb70e764427c885603b0285c8a64a218ae6361b1d
Fix Map hash bug

- `map_hash_key` must generate the same key for JS_INT and JS_FLOAT64
   with the same value
- add test cases in tests/test_builtin.js
quickjs.c
tests/test_builtin.js