Files
browser/src
Francis Bouvier 1d263aabbd webapi: keep explicit null as AbortSignal abort reason
Fixes 1 failing test in WPT /dom/abort/event.any.html (and its .worker
variant): "AbortController abort(null) should set signal.reason".

abort() reason parameters were typed ?js.Value.Global, and the JS->Zig
conversion collapses an explicit JS null into a missing argument, so
controller.abort(null) fell back to the default "AbortError"
DOMException. Per the DOM spec, the abort reason defaults to a new
AbortError only when the reason is not given (undefined); an explicit
null must be stored as-is.

The parameters are now ?js.Value, which preserves the missing vs
explicit-null distinction, and the new AbortSignal.reasonFromJs helper
only falls back to the default for a missing or undefined reason.

Coverage: /dom/abort/event.any.worker.html 15/16 -> 16/16,
/dom/abort/event.any.html 15/16 -> 16/16.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 16:47:42 +02:00
..
2026-07-14 15:15:10 +08:00
2026-07-14 11:55:59 +08:00
2026-07-08 10:19:38 +08:00
2026-07-14 11:32:52 +08:00
2026-07-14 09:17:14 +08:00
2026-07-09 20:59:58 +08:00
2026-07-14 09:17:14 +08:00
2026-06-24 18:16:02 +08:00
2026-07-14 09:17:14 +08:00
2026-05-29 09:32:03 +08:00
2026-04-10 06:51:10 +08:00
2026-07-14 09:17:14 +08:00
2026-07-14 09:17:14 +08:00
2026-07-02 11:23:45 +02:00
2026-07-14 09:17:14 +08:00
2026-07-14 11:32:52 +08:00
2026-07-10 07:35:36 +08:00
2026-07-14 11:45:17 +08:00
2026-05-25 18:05:11 +02:00
2026-07-14 14:19:27 +08:00