ARTEX/traffic/hookvm
Leo Camus 4cb1cd7404
fix(hookvm): compare a float with an integer without truncating it
valuesEqual converted both operands with toInt, which truncates a float64,
so 1.5 == 1 and -0.5 == 0 were true while 1.5 > 1 was also true. json.Decode
yields float64 numbers, so a hook testing m["amount"] == 0 matched a body
{"amount":0.5}. When either side is a float the comparison is now done in
float64.
2026-11-22 17:02:11 +00:00
..
eval.go fix(hookvm): compare a float with an integer without truncating it 2026-11-22 17:02:11 +00:00
stdlib.go fix(traffic/hookvm): account string->[]byte, strSlice, append, and regexp.Compile in memory budget 2026-11-21 00:48:27 +01:00
validate.go feat(traffic/hookvm): add deterministic resource-bounded Go-subset VM and sandbox tests 2026-11-21 00:48:27 +01:00
vm_test.go fix(hookvm): compare a float with an integer without truncating it 2026-11-22 17:02:11 +00:00