Yuto Yoshino
Yuto Yoshino2mo ago

Is Deno's new Request missing implementation of Fetch Spec steps 13-21, leading to Issue #27763?

In Deno, the new Request implementation appears to be missing steps 13 to 21 as specified in the Fetch Standard. Is this intentional? I believe this is the reason behind the issue opened at https://github.com/denoland/deno/issues/27763.
GitHub
denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
4 Replies
bartlomieju
bartlomieju2mo ago
There is no notion of referrer in Deno so these steps are skipped intentionally. What is the problem you are facing?
Yuto Yoshino
Yuto YoshinoOP2mo ago
thank you for me! I'm not particularly having trouble, but I was curious about the behavior! i see, for example, 
new Request("https://fetch.spec.whatwg.org/#ref-for-dom-request%E2%91%A0", {
  mode: "navigate",
});
new Request("https://fetch.spec.whatwg.org/#ref-for-dom-request%E2%91%A0", {
  mode: "navigate",
});
this code is error with node. because step17 is written by If mode is "navigate", then throw a TypeError. but, deno is not error. Could this be related to the fact that it doesn't handle referrers?
bartlomieju
bartlomieju2mo ago
I think so
Yuto Yoshino
Yuto YoshinoOP2mo ago
ok, thank you!

Did you find this page helpful?