diff options
| author | rossberg-chromium <rossberg@chromium.org> | 2016-10-14 18:28:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-14 18:28:41 +0200 |
| commit | f7004430f876c60fa53e6dcd14d2c7537ed1198e (patch) | |
| tree | cb9f8fb9d6925c615cffca25d777459754319a6b /BinaryEncoding.md | |
| parent | 1dc44d30feab35d5a482e72c182aa45b7b517ed3 (diff) | |
| download | nanowasm-design-f7004430f876c60fa53e6dcd14d2c7537ed1198e.tar.gz | |
Throw `RangeError` for invalid sizes or indices (#821)
The `WebAssembly.RuntimeError` exception should be reserved for actual traps in WebAssembly code. API functions should otherwise use appropriate regular JS exceptions.
In particular, this PR changes table/memory access and grow methods to throw a `RangeError` for out of bound sizes or indices. That is consistent with what their constructors do already.
Diffstat (limited to 'BinaryEncoding.md')
0 files changed, 0 insertions, 0 deletions
