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
@@ -348,7 +347,7 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
348
347
1. [=Create a host function=] from |v| and |functype|, and let |funcaddr| be the result.
349
348
1. Let |index| be the number of external functions in |imports|. This value |index| is known as the <dfn>index of the host function</dfn> |funcaddr|.
350
349
1. Let |externfunc| be the [=external value=][=external value|𝖿𝗎𝗇𝖼=] |funcaddr|.
351
-
1. [=Append=] |externfunc| to |imports|.
350
+
1. [=list/Append=] |externfunc| to |imports|.
352
351
1. If |externtype| is of the form [=𝗀𝗅𝗈𝖻𝖺𝗅=]<var ignore>mut</var> |valtype|,
353
352
1. If [=Type=](|v|) is Number,
354
353
1. If |valtype| is [=𝗂𝟨𝟦=], throw a {{LinkError}} exception.
@@ -361,18 +360,18 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
361
360
1. Otherwise,
362
361
1. Throw a {{LinkError}} exception.
363
362
1. Let |externglobal| be [=external value|𝗀𝗅𝗈𝖻𝖺𝗅=] |globaladdr|.
364
-
1. [=Append=] |externglobal| to |imports|.
363
+
1. [=list/Append=] |externglobal| to |imports|.
365
364
1. If |externtype| is of the form [=𝗆𝖾𝗆=]<var ignore>memtype</var>,
366
365
1. If |v| is not a {{Memory}} object, throw a {{LinkError}} exception.
367
366
1. Note: [=module_instantiate=] invoked below will check the imported {{Memory}}'s size against the importing module's requirements.
368
367
1. Let |externmem| be the [=external value=][=external value|𝗆𝖾𝗆=] |v|.\[[Memory]].
369
-
1. [=Append=] |externmem| to |imports|.
368
+
1. [=list/Append=] |externmem| to |imports|.
370
369
1. Otherwise, |externtype| is of the form [=𝗍𝖺𝖻𝗅𝖾=]<var ignore>tabletype</var>,
371
370
1. If |v| is not a {{Table}} instance, throw a {{LinkError}} exception.
372
371
1. Note: The table's length, etc. is checked by [=module_instantiate=] invoked below.
373
372
1. Let |tableaddr| be |v|.\[[Table]]
374
373
1. Let |externtable| be the [=external value=][=external value|𝗍𝖺𝖻𝗅𝖾=] |tableaddr|.
375
-
1. [=Append=] |externtable| to |imports|.
374
+
1. [=list/Append=] |externtable| to |imports|.
376
375
1. Return |imports|.
377
376
</div>
378
377
@@ -532,7 +531,7 @@ interface Module {
532
531
1. For each (|name|, |type|) in [=module_exports=](|module|)
533
532
1. Let |kind| be the [=string value of the extern type=] |type|.
534
533
1. Let |obj| be a new {{ModuleExportDescriptor}} dictionary with {{ModuleExportDescriptor/name}} |name| and {{ModuleExportDescriptor/kind}} |kind|.
535
-
1. [=Append=] |obj| to the end of |exports|.
534
+
1. [=list/Append=] |obj| to the end of |exports|.
536
535
1. Return |exports|.
537
536
</div>
538
537
@@ -543,7 +542,7 @@ interface Module {
543
542
1. For each (|moduleName|, |name|, |type|) in [=module_imports=](|module|),
544
543
1. Let |kind| be the [=string value of the extern type=] |type|.
545
544
1. Let |obj| be a new {{ModuleImportDescriptor}} dictionary with {{ModuleImportDescriptor/module}} |moduleName|, {{ModuleImportDescriptor/name}} |name| and {{ModuleImportDescriptor/kind}} |kind|.
546
-
1. [=Append=] |obj| to the end of |imports|.
545
+
1. [=list/Append=] |obj| to the end of |imports|.
547
546
1. Return |imports|.
548
547
</div>
549
548
@@ -555,7 +554,7 @@ interface Module {
555
554
1. Let |name| be the <code>name</code> of |customSection|, [=UTF-8 decode without BOM or fail|decoded as UTF-8=].
556
555
1. Assert: |name| is not failure (|moduleObject|.\[[Module]] is [=valid=]).
557
556
1. If |name| equals |sectionName| as string values,
558
-
1. [=Append=] a new {{ArrayBuffer}} containing a copy of the bytes in |bytes| for the range matched by this [=customsec=] production.
557
+
1. [=list/Append=] a new {{ArrayBuffer}} containing a copy of the bytes in |bytes| for the range matched by this [=customsec=] production to |customSections|.
559
558
1. Return |customSections|.
560
559
</div>
561
560
@@ -726,7 +725,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
726
725
{{Table}} object has the following internal slots:
727
726
728
727
* \[[Table]] : a [=table address=]
729
-
* \[[Values]] : a List whose elements are either null or [=Exported Function=]s.
728
+
* \[[Values]] : a [=list=] whose elements are either null or [=Exported Function=]s.
730
729
</div>
731
730
732
731
<div algorithm>
@@ -773,7 +772,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
773
772
Note: The above exception may happen due to either insufficient memory or an invalid size parameter.
774
773
775
774
1. Set the [=surrounding agent=]'s [=associated store=] to |result|.
776
-
1. [=Append=] null to **this**.\[[Values]] |delta| times.
775
+
1. [=list/Append=] null to **this**.\[[Values]] |delta| times.
777
776
1. Return |initialSize|.
778
777
</div>
779
778
@@ -974,12 +973,12 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [
974
973
975
974
Note: the above error is thrown each time the \[[Call]] method is invoked.
976
975
977
-
5. Let |args| be an empty list of WebAssembly values.
976
+
5. Let |args| be an empty [=list=] of WebAssembly values.
978
977
1. Let |i| be 0.
979
978
1. For each type |t| of |parameters|,
980
979
1. If the length of |argValues| > |i|, let |arg| be |argValues|[|i|].
981
980
1. Otherwise, let |arg| be undefined.
982
-
1. [=Append=][=ToWebAssemblyValue=](|arg|, |t|) to |args|.
981
+
1. [=list/Append=][=ToWebAssemblyValue=](|arg|, |t|) to |args|.
983
982
1. Set |i| to |i| + 1.
984
983
1. Let |argsSeq| be a WebAssembly [=sequence=] containing the elements of |args|.
985
984
1. Let (|store|, |ret|) be the result of [=func_invoke=](|store|, |funcaddr|, |argsSeq|).
0 commit comments