From 9e6cd91014ac4a0d34556b0d09cbe25e4e0930c6 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 20 Apr 2021 14:47:22 +0200 Subject: 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). --- runtime/js/99_main.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'runtime/js/99_main.js') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index dd7e3793c..7742e2ba2 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -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"); -- cgit v1.2.3