Skip to content

Commit cca5fdf

Browse files
committed
[js-api] Remove spurious argument to ToWebAssemblyValue().
Fixes WebAssembly#51.
1 parent d258902 commit cca5fdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

document/js-api/index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [
993993
1. For each type |t| of |parameters|,
994994
1. If the length of |argValues| > |i|, let |arg| be |argValues|[|i|].
995995
1. Otherwise, let |arg| be undefined.
996-
1. [=list/Append=] [=ToWebAssemblyValue=](|arg|, |t|, {{TypeError}}) to |args|.
996+
1. [=list/Append=] [=ToWebAssemblyValue=](|arg|, |t|) to |args|.
997997
1. Set |i| to |i| + 1.
998998
1. Let |argsSeq| be a WebAssembly [=sequence=] containing the elements of |args|.
999999
1. Let (|store|, |ret|) be the result of [=func_invoke=](|store|, |funcaddr|, |argsSeq|).
@@ -1060,7 +1060,7 @@ Note: Number values which are equal to NaN may have various observable NaN paylo
10601060
</div>
10611061

10621062
<div algorithm>
1063-
The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|, |error|) coerces a JavaScript value to a [=WebAssembly value=] performs the following steps:
1063+
The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|) coerces a JavaScript value to a [=WebAssembly value=] performs the following steps:
10641064

10651065

10661066
1. Assert: |type| is not [=𝗂𝟨𝟦=].
@@ -1077,9 +1077,9 @@ The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|, |error|) coerces a Java
10771077
1. If |type| is [=anyref=],
10781078
1. Do nothing.
10791079
1. If |type| is [=funcref=],
1080-
1. If |v| is not an [=Exported function=] or null, throw |error|.
1080+
1. If |v| is not an [=Exported function=] or null, throw a {{TypeError}}.
10811081
1. If |type| is [=nullref=],
1082-
1. If |v| is not null, throw |error|.
1082+
1. If |v| is not null, throw a {{TypeError}}.
10831083
1. Return the result of [=allocating a host address=] for |v|.
10841084

10851085
</div>

0 commit comments

Comments
 (0)