Permalink
Browse files

Add WebAssembly.validate (#752)

  • Loading branch information...
lukewagner committed Aug 29, 2016
1 parent ea0239c commit 672844f21723be95a9fb34901a18cb14efc321b8
Showing with 13 additions and 0 deletions.
  1. +13 −0 JS.md
View
13 JS.md
@@ -35,6 +35,19 @@ The following intrinsic objects are added:
### Function Properties of the `WebAssembly` object
#### `WebAssembly.validate`
The `validate` function has the signature:
```
Boolean validate(BufferSource bytes)
```
If the given `bytes` argument is not a
[`BufferSource`](https://heycam.github.io/webidl/#common-BufferSource),
then a `TypeError` is thrown.
Otherwise, this function performs *validation* as defined by the WebAssembly
spec and returns `true` if validation succeeded, `false` if validation failed.
#### `WebAssembly.compile`
The `compile` function has the signature:

0 comments on commit 672844f

Please sign in to comment.