giles
2af31248f2
js-on-sx: js-num-to-int guards NaN/Infinity → 0 (+2 String)
Spec ToUint16 (String.fromCharCode argument coercion) maps non-finite
values to 0. We had bare (floor v) which left inf/-inf/nan through,
breaking:
String.fromCharCode(Infinity).charCodeAt(0) === 0 // was "" → err
String.fromCharCode(NaN).charCodeAt(0) === 0 // was "" → err
Add NaN/inf/-inf guards returning 0 before the floor+signed-flip path.
Unit 521/522, slice 148/148 unchanged.
String 38/100 → 40/100 (+2: fromCharCode/S9.7_A1, S9.7_A2.1).
2026-04-24 13:14:23 +00:00
..
2026-04-23 19:42:16 +00:00
2026-04-24 11:20:55 +00:00
2026-04-23 19:42:16 +00:00
2026-04-23 20:27:19 +00:00
2026-04-24 06:32:44 +00:00
2026-04-24 13:14:23 +00:00
2026-04-24 11:36:56 +00:00
2026-04-23 22:53:13 +00:00
2026-04-23 22:53:13 +00:00
2026-04-24 13:07:33 +00:00
2026-04-24 13:07:33 +00:00
2026-04-24 11:36:56 +00:00
2026-04-24 12:31:32 +00:00