Skip to content

Commit 3e5fdc6

Browse files
committed
[js-api] Correct 'append' cross-references.
1 parent 2733411 commit 3e5fdc6

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

document/js-api/index.bs

+11-12
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ urlPrefix: https://heycam.github.io/webidl/; spec: WebIDL
178178
<pre class='link-defaults'>
179179
spec:infra; type:dfn; text:list
180180
spec:ecma-262; type:exception; for:ECMAScript; text:Error
181-
spec:infra; type:dfn; for:set; text:append
182181
spec:ecmascript; type:exception; for:ECMAScript; text:TypeError
183182
spec:ecmascript; type:exception; for:ECMAScript; text:RangeError
184183
spec:ecmascript; type:interface; for:ECMAScript; text:ArrayBuffer
@@ -348,7 +347,7 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
348347
1. [=Create a host function=] from |v| and |functype|, and let |funcaddr| be the result.
349348
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|.
350349
1. Let |externfunc| be the [=external value=] [=external value|𝖿𝗎𝗇𝖼=] |funcaddr|.
351-
1. [=Append=] |externfunc| to |imports|.
350+
1. [=list/Append=] |externfunc| to |imports|.
352351
1. If |externtype| is of the form [=𝗀𝗅𝗈𝖻𝖺𝗅=] <var ignore>mut</var> |valtype|,
353352
1. If [=Type=](|v|) is Number,
354353
1. If |valtype| is [=𝗂𝟨𝟦=], throw a {{LinkError}} exception.
@@ -361,18 +360,18 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
361360
1. Otherwise,
362361
1. Throw a {{LinkError}} exception.
363362
1. Let |externglobal| be [=external value|𝗀𝗅𝗈𝖻𝖺𝗅=] |globaladdr|.
364-
1. [=Append=] |externglobal| to |imports|.
363+
1. [=list/Append=] |externglobal| to |imports|.
365364
1. If |externtype| is of the form [=𝗆𝖾𝗆=] <var ignore>memtype</var>,
366365
1. If |v| is not a {{Memory}} object, throw a {{LinkError}} exception.
367366
1. Note: [=module_instantiate=] invoked below will check the imported {{Memory}}'s size against the importing module's requirements.
368367
1. Let |externmem| be the [=external value=] [=external value|𝗆𝖾𝗆=] |v|.\[[Memory]].
369-
1. [=Append=] |externmem| to |imports|.
368+
1. [=list/Append=] |externmem| to |imports|.
370369
1. Otherwise, |externtype| is of the form [=𝗍𝖺𝖻𝗅𝖾=] <var ignore>tabletype</var>,
371370
1. If |v| is not a {{Table}} instance, throw a {{LinkError}} exception.
372371
1. Note: The table's length, etc. is checked by [=module_instantiate=] invoked below.
373372
1. Let |tableaddr| be |v|.\[[Table]]
374373
1. Let |externtable| be the [=external value=] [=external value|𝗍𝖺𝖻𝗅𝖾=] |tableaddr|.
375-
1. [=Append=] |externtable| to |imports|.
374+
1. [=list/Append=] |externtable| to |imports|.
376375
1. Return |imports|.
377376
</div>
378377

@@ -532,7 +531,7 @@ interface Module {
532531
1. For each (|name|, |type|) in [=module_exports=](|module|)
533532
1. Let |kind| be the [=string value of the extern type=] |type|.
534533
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|.
536535
1. Return |exports|.
537536
</div>
538537

@@ -543,7 +542,7 @@ interface Module {
543542
1. For each (|moduleName|, |name|, |type|) in [=module_imports=](|module|),
544543
1. Let |kind| be the [=string value of the extern type=] |type|.
545544
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|.
547546
1. Return |imports|.
548547
</div>
549548

@@ -555,7 +554,7 @@ interface Module {
555554
1. Let |name| be the <code>name</code> of |customSection|, [=UTF-8 decode without BOM or fail|decoded as UTF-8=].
556555
1. Assert: |name| is not failure (|moduleObject|.\[[Module]] is [=valid=]).
557556
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|.
559558
1. Return |customSections|.
560559
</div>
561560

@@ -726,7 +725,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
726725
{{Table}} object has the following internal slots:
727726

728727
* \[[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.
730729
</div>
731730

732731
<div algorithm>
@@ -773,7 +772,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
773772
Note: The above exception may happen due to either insufficient memory or an invalid size parameter.
774773

775774
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.
777776
1. Return |initialSize|.
778777
</div>
779778

@@ -974,12 +973,12 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [
974973

975974
Note: the above error is thrown each time the \[[Call]] method is invoked.
976975

977-
5. Let |args| be an empty list of WebAssembly values.
976+
5. Let |args| be an empty [=list=] of WebAssembly values.
978977
1. Let |i| be 0.
979978
1. For each type |t| of |parameters|,
980979
1. If the length of |argValues| &gt; |i|, let |arg| be |argValues|[|i|].
981980
1. Otherwise, let |arg| be undefined.
982-
1. [=Append=] [=ToWebAssemblyValue=](|arg|, |t|) to |args|.
981+
1. [=list/Append=] [=ToWebAssemblyValue=](|arg|, |t|) to |args|.
983982
1. Set |i| to |i| + 1.
984983
1. Let |argsSeq| be a WebAssembly [=sequence=] containing the elements of |args|.
985984
1. Let (|store|, |ret|) be the result of [=func_invoke=](|store|, |funcaddr|, |argsSeq|).

0 commit comments

Comments
 (0)