Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1473,10 +1473,11 @@ The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|) coerces a JavaScript va
1. Else,
1. Let |map| be the [=surrounding agent=]'s associated [=host value cache=].
1. If a [=host address=] |hostaddr| exists such that |map|[|hostaddr|] is the same as |v|,
1. Return [=ref.host=] |hostaddr|.
1. Let |hostaddr| be the smallest [=host address=] such that |map|[|hostaddr|] [=map/exists=] is false.
1. [=map/Set=] |map|[|hostaddr|] to |v|.
1. Let |r| be [=ref.host=] |hostaddr|.
1. Let |r| be [=ref.host=] |hostaddr|.
1. Else,
1. Let |hostaddr| be the smallest [=host address=] such that |map|[|hostaddr|] [=map/exists=] is false.
1. [=map/Set=] |map|[|hostaddr|] to |v|.
1. Let |r| be [=ref.host=] |hostaddr|.
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
1. Let |actualtype| be [=ref_type=](|store|, |r|).
1. If [=match_valtype=](|actualtype|, |type|) is false,
Expand Down
Loading