From e330cb8d3c30ad4d1e2522b1b3ad5c829dd01c0d Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Fri, 12 May 2017 07:00:31 -0700 Subject: Throw "TypeError" on incorrect MIME type (#1054) Proposing that we throw TypeError when the Response parameter has incorrect MIME type. This seems more in-line to what we do for: WebAssembly.{compile|instantiate}("hello!") --- Web.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Web.md') diff --git a/Web.md b/Web.md index 469d9a5..9212229 100644 --- a/Web.md +++ b/Web.md @@ -69,7 +69,7 @@ from the `Response`, WebAssembly `source` data must have a MIME type of `applica extra parameters are not allowed (including empty `application/wasm;`). MIME type mismatch or `opaque` response types [reject](http://tc39.github.io/ecma262/#sec-rejectpromise) the Promise with a -`WebAssembly.CompileError`. +`TypeError`. #### `WebAssembly.instantiate` -- cgit v1.2.3