Skip to content

Commit

Permalink
Fetch: remove support for Response's trailer
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 11, 2019
1 parent af8e392 commit 8e892ed
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 39 deletions.
16 changes: 16 additions & 0 deletions fetch/api/basic/historical.any.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
test(() => {
assert_false("getAll" in new Headers);
assert_false("getAll" in Headers.prototype);
}, "Headers object no longer has a getAll() method");

test(() => {
const request = new Request("https://domfarolino.com");
assert_equals(request.type, undefined);
assert_false("type" in Request.prototype);
}, "'type' getter should not exist on Request objects");

// See https://github.com/whatwg/fetch/pull/979 for the removal
test(() => {
assert_false("trailer" in new Response());
assert_false("trailer" in Response.prototype);
}, "Response object no longer has a trailer getter");
4 changes: 0 additions & 4 deletions fetch/api/headers/historical.any.js

This file was deleted.

11 changes: 0 additions & 11 deletions fetch/api/request/request-type-attribute-historical.html

This file was deleted.

24 changes: 0 additions & 24 deletions fetch/api/response/response-trailer.html

This file was deleted.

0 comments on commit 8e892ed

Please sign in to comment.