chore: align fetch to spec (#10203)

This commit aligns the `fetch` API and the `Request` / `Response`
classes belonging to it to the spec. This commit enables all the
relevant `fetch` WPT tests. Spec compliance is now at around 90%.

Performance is essentially identical now (within 1% of 1.9.0).
This commit is contained in:
Luca Casonato 2021-04-20 14:47:22 +02:00 committed by GitHub
parent 115197ffb0
commit 9e6cd91014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 2235 additions and 1384 deletions

View file

@ -421,7 +421,6 @@ delete Object.prototype.__proto__;
if (locationHref != null) {
location.setLocationHref(locationHref);
fetch.setBaseUrl(locationHref);
}
registerErrors();
@ -488,7 +487,6 @@ delete Object.prototype.__proto__;
runtimeOptions;
location.setLocationHref(locationHref);
fetch.setBaseUrl(locationHref);
registerErrors();
const internalSymbol = Symbol("Deno.internal");