diff options
| author | Luke Wagner <mail@lukewagner.name> | 2016-10-29 09:37:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-29 09:37:55 -0500 |
| commit | 22d5fed3420e7783596cc4bb849ce8857f0be0c2 (patch) | |
| tree | 05fe84596624754d0e783d5b4cef26192aefb2b6 /JS.md | |
| parent | 712130a4711f8c980f498836d8c34115d2402b22 (diff) | |
| download | nanowasm-design-22d5fed3420e7783596cc4bb849ce8857f0be0c2.tar.gz | |
Prevent detachment of a Memory's ArrayBuffer (#843)
Diffstat (limited to 'JS.md')
| -rw-r--r-- | JS.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -451,6 +451,10 @@ aliases `m` and whose [[[ArrayBufferByteLength]]](http://tc39.github.io/ecma262/#sec-properties-of-the-arraybuffer-prototype-object) is set to the byte length of `m`. +Any attempts to [`detach`](http://tc39.github.io/ecma262/#sec-detacharraybuffer) `buffer` *other* than +the detachment performed by [`m.grow`](#webassemblymemoryprototypegrow) shall throw a +[`TypeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror) + Return a new `WebAssembly.Memory` instance with [[Memory]] set to `m` and [[BufferObject]] set to `buffer`. |
