Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 6f8e7bc

Browse files
authored
Merge pull request #523 from takikawa/link-error
[js-api] Throw consistent exns in "read the imports"
2 parents 322e948 + 094a902 commit 6f8e7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

document/js-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
371371
1. Throw a {{LinkError}} exception.
372372
1. If |valtype| is [=v128=],
373373
1. Throw a {{LinkError}} exception.
374-
1. Let |value| be [=ToWebAssemblyValue=](|v|, |valtype|).
374+
1. Let |value| be [=ToWebAssemblyValue=](|v|, |valtype|). If this operation throws a {{TypeError}}, catch it, and throw a {{LinkError}} exception.
375375
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
376376
1. Let (|store|, |globaladdr|) be [=global_alloc=](|store|, [=const=] |valtype|, |value|).
377377
1. Set the [=surrounding agent=]'s [=associated store=] to |store|.

0 commit comments

Comments
 (0)