Skip to content

Commit

Permalink
Use new IDL mixin syntax in fetch/
Browse files Browse the repository at this point in the history
Helps with whatwg/fetch#624.
  • Loading branch information
romandev authored and annevk committed Dec 18, 2017
1 parent 8d55e38 commit f02423e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions fetch/api/request/request-idl.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
typedef any JSON;
typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;

[NoInterfaceObject,
Exposed=(Window,Worker)]
interface Body {
interface mixin Body {
readonly attribute ReadableStream? body;
readonly attribute boolean bodyUsed;
[NewObject] Promise<ArrayBuffer> arrayBuffer();
Expand Down Expand Up @@ -48,7 +46,7 @@

[NewObject] Request clone();
};
Request implements Body;
Request includes Body;

dictionary RequestInit {
ByteString method;
Expand Down
6 changes: 2 additions & 4 deletions fetch/api/response/response-idl.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
typedef any JSON;
typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;

[NoInterfaceObject,
Exposed=(Window,Worker)]
interface Body {
interface mixin Body {
readonly attribute ReadableStream? body;
readonly attribute boolean bodyUsed;
[NewObject] Promise<ArrayBuffer> arrayBuffer();
Expand Down Expand Up @@ -45,7 +43,7 @@

[NewObject] Response clone();
};
Response implements Body;
Response includes Body;

dictionary ResponseInit {
unsigned short status = 200;
Expand Down

0 comments on commit f02423e

Please sign in to comment.