summaryrefslogtreecommitdiffhomepage
path: root/vallist.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-03-13 21:05:04 +0100
committerJo-Philipp Wich <jo@mein.io>2024-03-13 23:08:37 +0100
commitbe767ae197babd656d4f5d9c2d5013e39ddbe656 (patch)
tree37b790dae8f45a02da5b5cbe7266875e9bc1f540 /vallist.c
parentba3855ae3775197f3594fc2615cac539075bd2fb (diff)
vm: rework `in` operator semantics
- Ensure that testing for array membership does strict equality tests - Ensure that `(NaN in [ NaN ]) == true` - Do not perform implicit value conversion when testing for object keys, to avoid nonsensical results such as `([] in { "[ ]": true }) == true` - Add test cases for the `in` operator Fixes: #193 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'vallist.c')
0 files changed, 0 insertions, 0 deletions