Update XHR BodyInit, update extract method impl

This commit is contained in:
St.Spyder 2016-01-17 22:39:35 +05:30
parent 7f16b4e47b
commit 763b99258f
3 changed files with 36 additions and 32 deletions

View file

@ -13,8 +13,8 @@
* http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
*/
// https://fetch.spec.whatwg.org/#fetchbodyinit
typedef (/*ArrayBuffer or ArrayBufferView or Blob or FormData or */DOMString or URLSearchParams) FetchBodyInit;
// https://fetch.spec.whatwg.org/#bodyinit
typedef (Blob or /*BufferSource or FormData or */DOMString or URLSearchParams) BodyInit;
enum XMLHttpRequestResponseType {
"",
@ -55,7 +55,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
attribute boolean withCredentials;
readonly attribute XMLHttpRequestUpload upload;
[Throws]
void send(optional /*Document or*/ FetchBodyInit? data = null);
void send(optional /*Document or*/ BodyInit? data = null);
void abort();
// response