Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the new WebIDL mixin syntax in fetch/ #8701

Merged
merged 1 commit into from
Dec 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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