LibWeb: Allow null for optional, nullable, no default value union types

For these types, it would previously only accept `undefined` for the
`null` state.

Fixes GET requests in the Turbo library always failing:
9e057f284a/src/http/fetch_request.js (L219-L220)
9e057f284a/src/http/fetch_request.js (L51-L64)

This was found on https://www.fangamer.com/.
This commit is contained in:
Luke Wilde 2025-02-21 13:23:07 +00:00 committed by Andreas Kling
commit 198cec481a
Notes: github-actions[bot] 2025-02-22 17:46:21 +00:00
3 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,4 @@
Successfully created GET request with body set to null
Successfully created HEAD request with body set to null
Successfully started GET fetch with body set to null
Successfully started HEAD fetch with body set to null