diff options
| author | Mircea Trofin <mtrofin@google.com> | 2017-05-12 07:00:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-12 07:00:31 -0700 |
| commit | e330cb8d3c30ad4d1e2522b1b3ad5c829dd01c0d (patch) | |
| tree | b3d51c08e948ca633dc627e08bb23b8fcd8a4a35 /Web.md | |
| parent | dea1548ce2099d87bac8e9b10cdc62dc4f659bc0 (diff) | |
| download | nanowasm-design-e330cb8d3c30ad4d1e2522b1b3ad5c829dd01c0d.tar.gz | |
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!")
Diffstat (limited to 'Web.md')
| -rw-r--r-- | Web.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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` |
