Permalink
Browse files

Change WebAssembly.compile to throw on bad args

  • Loading branch information...
Luke Wagner
Luke Wagner committed Aug 10, 2016
1 parent 51c105c commit 0e68a8639e54da93dcd37aa3d71711ce52805842
Showing with 1 addition and 2 deletions.
  1. +1 −2 JS.md
View
3 JS.md
@@ -43,8 +43,7 @@ Promise<WebAssembly.Module> compile(BufferSource bytes)
```
If the given `bytes` argument is not a
[`BufferSource`](https://heycam.github.io/webidl/#common-BufferSource),
the returned `Promise` is [rejected](http://tc39.github.io/ecma262/#sec-rejectpromise)
with a `TypeError`.
a `TypeError` is thrown.
Otherwise, this function starts an asychronous task to compile a `WebAssembly.Module`
as described in the [`WebAssembly.Module` constructor](#webassemblymodule-constructor).

0 comments on commit 0e68a86

Please sign in to comment.