Uh oh!
There was an error while loading. Please reload this page.
lib: make structuredClone spec compliant - #40251
Conversation
targos
commented
Sep 29, 2021
It would be nice to have a WPT for this. |
targos
commented
Sep 29, 2021
BTW, I'm not sure we should throw an error, but instead just grab |
VoltrexKeyva
commented
Sep 29, 2021
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. |
targos
commented
Sep 29, 2021
What's important here is not consistency, but spec compliance. The spec just asks to pass constoptions=[];options.transfer=[toTransfer];structuredClone({},options); |
8537f2e to
ab4fd2bCompareUh oh!
There was an error while loading. Please reload this page.
ab4fd2b to
0fd3037Comparetargos
commented
Sep 29, 2021
Do we have a WHATWG spec specialist that we could ping to take a look? |
aduh95
commented
Sep 29, 2021
Maybe @surma would be available to review this, since they are the one who proposed this API to WHATWG. |
nodejs-github-bot
commented
Oct 3, 2021
nodejs-github-bot
commented
Oct 3, 2021
Landed in 6199441...3d11baf |
Fixes: #40246