Skip to content

Commit 39b7487

Browse files
committed
[js-api] Editorial: fix some bikeshed warnings
Fixes #1767.
1 parent d73ac32 commit 39b7487

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

document/js-api/index.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,8 @@ Immediately after a WebAssembly [=memory.grow=] instruction executes, perform th
741741
{{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.
742742

743743
<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.
745746

746747
1. If |buffer|.\[[ArrayBufferDetachKey]] is "WebAssembly.Memory",
747748
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
10891090
1. If |resultsSize| is 0, return « ».
10901091
1. Otherwise, if |resultsSize| is 1, return « [=?=] [=ToWebAssemblyValue=](|ret|, |results|[0]) ».
10911092
1. Otherwise,
1092-
1. Let |method| be [=?=] [$GetMethod$](|ret|, {{@@iterator}}).
1093+
1. Let |method| be [=?=] [$GetMethod$](|ret|, {{%Symbol.iterator%}}).
10931094
1. If |method| is undefined, [=throw=] a {{TypeError}}.
10941095
1. Let |values| be [=?=] [$IteratorToList$]([=?=] [$GetIteratorFromMethod$](|ret|, |method|)).
10951096
1. Let |wasmValues| be a new, empty [=list=].
@@ -1210,7 +1211,7 @@ When the [=namespace object=] for the {{WebAssembly}} namespace is [=create a na
12101211
1. Let |namespaceObject| be the [=namespace object=].
12111212
1. [=list/iterate|For each=] |error| of « "CompileError", "LinkError", "RuntimeError" »,
12121213
1. Let |constructor| be a new object, implementing the [=NativeError Object Structure=], with <var ignore>NativeError</var> set to |error|.
1213-
1. [=!=] [$CreateMethodProperty$](|namespaceObject|, |error|, |constructor|).
1214+
1. [=!=] [$DefineMethodProperty$](|namespaceObject|, |error|, |constructor|, false).
12141215

12151216
</div>
12161217

0 commit comments

Comments
 (0)