Update URL & Request & XMLHttpRequest interface to accept Location - #2552
Update URL & Request & XMLHttpRequest interface to accept Location#2552Adam Naji (Bashamega) wants to merge 9 commits into
Conversation
…ds across multiple baselines
|
Thanks for the PR! This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged. |
|
Should i handle the fallback to WorkerLocation in the emitter or what should i do in this situation? |
| method parse signatureIndex=0 { | ||
| param base overrideType="string | URL | Location" | ||
| } | ||
| } |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Updated
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
…iple baseline files
|
🤔It seems that we need to separately make |
|
|
||
| interface URL { | ||
| constructor signatureIndex=0 { | ||
| param url overrideType="string | URL | Location" |
There was a problem hiding this comment.
Why not additionalTypes? 🤔
There was a problem hiding this comment.
Because location is not supported in web worker, i don't know how to handle web worker
There was a problem hiding this comment.
the exposure checker should autoremove them... but maybe we don't do that for additionalTypes? 🤔
…ethod parameters across multiple baseline files
|
It wasn't implemented, but I have added it Kagami Sascha Rosylight (@saschanaz) |
Adam Naji (@Bashamega) should it also affect |
yes new Request(location) |
|
I have updated it. What do you think Kagami Sascha Rosylight (@saschanaz) |
|
ChatGPT suggested adding the type for inputfiles/overridingTypes.jsonc
"WindowOrWorkerGlobalScope": {
"methods": {
"method": {
+ "fetch": {
+ "signature": {
+ "0": {
+ "param": [
+ {
+ "name": "input",
+ "additionalTypes": ["Location"]
+ }
+ ]
+ }
+ }
+ },
... |
…e baseline files Signed-off-by: Bashamega <adambashaahmednaji@gmail.com>
|
Thanks for the help 半岛的蒟蒻bddjr (@bddjr) ... Updated |
|
Review by Gemini 3.8 Flash: Thanks for working on this! A few findings during the review: 1. Typo in
|
…est and URL constructors, as well as fetch method signatures.
|
Review by Gemini 3.8 Flash: Nice work on adding Just one architectural detail regarding Currently, the changes in
The reason the baselines generated correctly is actually due to To clean this up, we have two options:
|
closes #2536
Also, I couldn't figure out how to override fetch