Index: third_party/WebKit/Source/modules/fetch/Response.idl |
diff --git a/third_party/WebKit/Source/modules/fetch/Response.idl b/third_party/WebKit/Source/modules/fetch/Response.idl |
index 4ac9f4038fe0600beef44bcf31ac275b1b9cdccc..556488f7fe9ee8e8d35e432469ed8da2a170013b 100644 |
--- a/third_party/WebKit/Source/modules/fetch/Response.idl |
+++ b/third_party/WebKit/Source/modules/fetch/Response.idl |
@@ -6,11 +6,12 @@ |
enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredirect" }; |
+// FIXME: Add union type: URLSearchParams |
+typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyInit; |
+ |
[ |
- // TODO(yhirano): We use "any" for body because the IDL processor doesn't |
- // recognize ReadableStream implemented with V8 extras. Fix it. |
- Constructor(optional any body, optional Dictionary responseInitDict), |
- ConstructorCallWith=ScriptState, |
+ Constructor(optional BodyInit body, optional Dictionary responseInitDict), |
+ ConstructorCallWith=ExecutionContext, |
Exposed=(Window,Worker), |
RaisesException=Constructor, |
ActiveDOMObject, |