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`.
375
359
1. Otherwise (`i` is a table import):
376
360
1. If `v` is not a [`WebAssembly.Table` object](#webassemblytable-objects),
377
361
throw a `WebAssembly.LinkError`.
@@ -446,7 +430,7 @@ each [external](https://github.com/WebAssembly/spec/blob/master/interpreter/spec
446
430
1. If `v` is an `i64`, throw a `WebAssembly.LinkError`.
447
431
1. Return [`ToJSValue`](#tojsvalue)`(v)`.
448
432
1. If `e` is a [memory](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/instance.ml#L14)`m`:
449
-
1. If there is an element `memory` in `memories` whose `memory.[[Memory]]` is `m`, then return `memory`.
433
+
1. If there is an element `memory` in `memories` whose `memory.[[WebAssembly.Memory]]` is `m`, then return `memory`.
450
434
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.)
451
435
1. Otherwise:
452
436
1. Let `memory` be a new `WebAssembly.Memory` object created via [`CreateMemoryObject`](#creatememoryobject) from `m`.
@@ -537,9 +521,9 @@ A `WebAssembly.Memory` object contains a single [linear memory](Semantics.md#lin
537
521
which can be simultaneously referenced by multiple `Instance` objects. Each
538
522
`Memory` object has two internal slots:
539
523
540
-
*[[Memory]] : a [`Memory.memory`](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/memory.mli)
541
-
*[[BufferObject]] : the current `ArrayBuffer` whose [[ArrayBufferByteLength]]
542
-
matches the current byte length of [[Memory]]
524
+
*[[WebAssembly.Memory]] : a [`Memory.memory`](https://webassembly.github.io/spec/exec/runtime.html#memory-instances)
525
+
*[[BufferObject]] : the current `ArrayBuffer`or `SharedArrayBuffer`whose [[ArrayBufferByteLength]]
526
+
matches the current byte length of [[WebAssembly.Memory]]
543
527
544
528
### `WebAssembly.Memory` Constructor
545
529
@@ -571,7 +555,7 @@ Return the result of [`CreateMemoryObject`](#creatememoryobject)(`memory`).
571
555
572
556
### CreateMemoryObject
573
557
574
-
Given a [`Memory.memory`](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/memory.mli#L1)
558
+
Given a [`Memory.memory`](https://webassembly.github.io/spec/exec/runtime.html#memory-instances)
575
559
`m`, to create a `WebAssembly.Memory`:
576
560
577
561
Let `buffer` be a new `ArrayBuffer` whose
@@ -584,7 +568,7 @@ Any attempts to [`detach`](http://tc39.github.io/ecma262/#sec-detacharraybuffer)
584
568
the detachment performed by [`m.grow`](#webassemblymemoryprototypegrow) shall throw a
0 commit comments