aboutsummaryrefslogtreecommitdiff
path: root/JS.md
diff options
context:
space:
mode:
authorLuke Wagner <mail@lukewagner.name>2016-10-29 09:37:55 -0500
committerGitHub <noreply@github.com>2016-10-29 09:37:55 -0500
commit22d5fed3420e7783596cc4bb849ce8857f0be0c2 (patch)
tree05fe84596624754d0e783d5b4cef26192aefb2b6 /JS.md
parent712130a4711f8c980f498836d8c34115d2402b22 (diff)
downloadnanowasm-design-22d5fed3420e7783596cc4bb849ce8857f0be0c2.tar.gz
Prevent detachment of a Memory's ArrayBuffer (#843)
Diffstat (limited to 'JS.md')
-rw-r--r--JS.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/JS.md b/JS.md
index a8b94d7..590e6be 100644
--- a/JS.md
+++ b/JS.md
@@ -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`.