aboutsummaryrefslogtreecommitdiff
path: root/Web.md
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2017-05-12 07:00:31 -0700
committerGitHub <noreply@github.com>2017-05-12 07:00:31 -0700
commite330cb8d3c30ad4d1e2522b1b3ad5c829dd01c0d (patch)
treeb3d51c08e948ca633dc627e08bb23b8fcd8a4a35 /Web.md
parentdea1548ce2099d87bac8e9b10cdc62dc4f659bc0 (diff)
downloadnanowasm-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.md2
1 files changed, 1 insertions, 1 deletions
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`