| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
It would be nice to have a WPT for this. |
Sorry, something went wrong.
|
BTW, I'm not sure we should throw an error, but instead just grab transfer from the passed object and create a new options object with it. |
Sorry, something went wrong.
We mostly just throw an error if the passed value is not spec complaint in most cases, throwing an error here would be nice for keeping consistency unless there's a special case where we have to avoid throwing an error. |
Sorry, something went wrong.
|
What's important here is not consistency, but spec compliance. The spec just asks to pass options["transfer"]. Maybe I'm wrong, but I understand that it should not be an error to do this: const options = [];
options.transfer = [toTransfer];
structuredClone({}, options); |
Sorry, something went wrong.
|
Do we have a WHATWG spec specialist that we could ping to take a look? |
Sorry, something went wrong.
|
Maybe @surma would be available to review this, since they are the one who proposed this API to WHATWG. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #40246