You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Append `v.[[WebAssembly.Memory]]` to `imports`.
370
354
1. Otherwise (`i` is a table import):
371
355
1. If `v` is not a [`WebAssembly.Table` object](#webassemblytable-objects),
372
356
throw a `WebAssembly.LinkError`.
@@ -441,7 +425,7 @@ each [external](https://github.com/WebAssembly/spec/blob/master/interpreter/spec
441
425
1. If `v` is an `i64`, throw a `WebAssembly.LinkError`.
442
426
1. Return [`ToJSValue`](#tojsvalue)`(v)`.
443
427
1. If `e` is a [memory](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/instance.ml#L14)`m`:
444
-
1. If there is an element `memory` in `memories` whose `memory.[[Memory]]` is `m`, then return `memory`.
428
+
1. If there is an element `memory` in `memories` whose `memory.[[WebAssembly.Memory]]` is `m`, then return `memory`.
445
429
1. (Note: At most one `WebAssembly.Memory` object is created for any memory, so the above `memory` is unique, even if there are multiple occurrances in the list. Moreover, if the item was an import, the original object will be found.)
446
430
1. Otherwise:
447
431
1. Let `memory` be a new `WebAssembly.Memory` object created via [`CreateMemoryObject`](#creatememoryobject) from `m`.
@@ -532,9 +516,9 @@ A `WebAssembly.Memory` object contains a single [linear memory](Semantics.md#lin
532
516
which can be simultaneously referenced by multiple `Instance` objects. Each
533
517
`Memory` object has two internal slots:
534
518
535
-
*[[Memory]] : a [`Memory.memory`](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/memory.mli)
536
-
*[[BufferObject]] : the current `ArrayBuffer` whose [[ArrayBufferByteLength]]
537
-
matches the current byte length of [[Memory]]
519
+
*[[WebAssembly.Memory]] : a [`Memory.memory`](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/memory.mli)
520
+
*[[BufferObject]] : the current `ArrayBuffer`or `SharedArrayBuffer`whose [[ArrayBufferByteLength]]
521
+
matches the current byte length of [[WebAssembly.Memory]]
538
522
539
523
### `WebAssembly.Memory` Constructor
540
524
@@ -579,7 +563,7 @@ Any attempts to [`detach`](http://tc39.github.io/ecma262/#sec-detacharraybuffer)
579
563
the detachment performed by [`m.grow`](#webassemblymemoryprototypegrow) shall throw a
0 commit comments