summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/fetch/response.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/fetch/response.idl')
-rw-r--r--chromium/third_party/blink/renderer/core/fetch/response.idl8
1 files changed, 3 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/fetch/response.idl b/chromium/third_party/blink/renderer/core/fetch/response.idl
index dac40e50960..1ae9071c6c5 100644
--- a/chromium/third_party/blink/renderer/core/fetch/response.idl
+++ b/chromium/third_party/blink/renderer/core/fetch/response.idl
@@ -8,13 +8,11 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredire
[
ActiveScriptWrappable,
+ Exposed=(Window,Worker)
+] interface Response {
// 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 ResponseInit init),
- ConstructorCallWith=ScriptState,
- Exposed=(Window,Worker),
- RaisesException=Constructor
-] interface Response {
+ [CallWith=ScriptState, RaisesException] constructor(optional any body, optional ResponseInit init = {});
[CallWith=ScriptState, NewObject] static Response error();
[CallWith=ScriptState, NewObject, RaisesException] static Response redirect(USVString url, optional unsigned short status = 302);
readonly attribute ResponseType type;