Skip to content

Commit e330cb8

Browse files
authored
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!")
1 parent dea1548 commit e330cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Web.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ from the `Response`, WebAssembly `source` data must have a MIME type of `applica
6969
extra parameters are not allowed (including empty `application/wasm;`).
7070
MIME type mismatch or `opaque` response types
7171
[reject](http://tc39.github.io/ecma262/#sec-rejectpromise) the Promise with a
72-
`WebAssembly.CompileError`.
72+
`TypeError`.
7373

7474
#### `WebAssembly.instantiate`
7575

0 commit comments

Comments
 (0)