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
Copy file name to clipboardExpand all lines: document/js-api/index.bs
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -741,7 +741,8 @@ Immediately after a WebAssembly [=memory.grow=] instruction executes, perform th
741
741
{{ArrayBuffer}} objects returned by a {{Memory}} object must have a size that is a multiple of a WebAssembly [=page size=] (the constant 65536). For this reason [=HostResizeArrayBuffer=] is redefined as follows.
742
742
743
743
<div algorithm>
744
-
The <dfn>abstract operation [=HostResizeArrayBuffer=]</dfn> takes arguments |buffer| (an {{ArrayBuffer}}) and |newLength|. It performs the following steps when called.
744
+
745
+
The <dfn id=HostResizeArrayBuffer export>abstract operation [=HostResizeArrayBuffer=]</dfn> takes arguments |buffer| (an {{ArrayBuffer}}) and |newLength|. It performs the following steps when called.
745
746
746
747
1. If |buffer|.\[[ArrayBufferDetachKey]] is "WebAssembly.Memory",
747
748
1. Let |map| be the [=surrounding agent=]'s associated [=Memory object cache=].
@@ -1089,7 +1090,7 @@ Note: Exported Functions do not have a \[[Construct]] method and thus it is not
1089
1090
1. If |resultsSize| is 0, return « ».
1090
1091
1. Otherwise, if |resultsSize| is 1, return « [=?=][=ToWebAssemblyValue=](|ret|, |results|[0]) ».
1091
1092
1. Otherwise,
1092
-
1. Let |method| be [=?=][$GetMethod$](|ret|, {{@@iterator}}).
1093
+
1. Let |method| be [=?=][$GetMethod$](|ret|, {{%Symbol.iterator%}}).
1093
1094
1. If |method| is undefined, [=throw=] a {{TypeError}}.
1094
1095
1. Let |values| be [=?=][$IteratorToList$]([=?=][$GetIteratorFromMethod$](|ret|, |method|)).
1095
1096
1. Let |wasmValues| be a new, empty [=list=].
@@ -1210,7 +1211,7 @@ When the [=namespace object=] for the {{WebAssembly}} namespace is [=create a na
1210
1211
1. Let |namespaceObject| be the [=namespace object=].
1211
1212
1. [=list/iterate|For each=] |error| of « "CompileError", "LinkError", "RuntimeError" »,
1212
1213
1. Let |constructor| be a new object, implementing the [=NativeError Object Structure=], with <var ignore>NativeError</var> set to |error|.
0 commit comments