Commit 198cec4
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:
https://github.com/hotwired/turbo/blob/9e057f284a60a9597446b258d562cebd55be71d7/src/http/fetch_request.js#L219-L220
https://github.com/hotwired/turbo/blob/9e057f284a60a9597446b258d562cebd55be71d7/src/http/fetch_request.js#L51-L64
This was found on https://www.fangamer.com/.1 parent 16662ab commit 198cec4
File tree
3 files changed
+27
-1
lines changed- Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator
- Tests/LibWeb/Text
- expected/Fetch
- input/Fetch
3 files changed
+27
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
| 1589 | + | |
1589 | 1590 | | |
1590 | 1591 | | |
1591 | | - | |
| 1592 | + | |
1592 | 1593 | | |
1593 | 1594 | | |
1594 | 1595 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments