Skip to content

Commit 93de45b

Browse files
authored
Merge pull request #31 from Ms2ger/method-fixes
Fix the type() algorithms.
2 parents 7e5148c + 5f2a64f commit 93de45b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

document/js-api/index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ Immediately after a WebAssembly [=memory.grow=] instruction executes, perform th
777777

778778
<div algorithm>
779779

780-
The <dfn method for="Memory">type(|memory|)</dfn> method steps are:
780+
The <dfn method for="Memory">type()</dfn> method steps are:
781781

782782
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
783-
1. Let |memaddr| be |memory|.\[[Memory]].
783+
1. Let |memaddr| be **this**.\[[Memory]].
784784
1. Let { min |minimum|, max |maximum| } be [=mem_type=](|store|, |memaddr|).
785785
1. Let |type| be «[ "{{MemoryType/minimum}}" → |minimum| ]».
786786
1. If |maximum| is not empty,
@@ -929,10 +929,10 @@ The algorithm <dfn abstract-op>ToTableKind</dfn>(|t|) performs the following ste
929929

930930
<div algorithm>
931931

932-
The <dfn method for="Table">type(|table|)</dfn> method steps are:
932+
The <dfn method for="Table">type()</dfn> method steps are:
933933

934934
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
935-
1. Let |tableaddr| be |table|.\[[Table]].
935+
1. Let |tableaddr| be **this**.\[[Table]].
936936
1. Let ({ min |minimum|, max |maximum| }, |elementType|) be [=table_type=](|store|, |tableaddr|).
937937
1. Let |type| be «[ "{{TableType/element}}" → [$ToTableKind$](|elementType|), "{{TableType/minimum}}" → |minimum| ]».
938938
1. If |maximum| is not empty,
@@ -1077,10 +1077,10 @@ The algorithm <dfn abstract-op>FromValueType</dfn>(|s|) performs the following s
10771077

10781078
<div algorithm>
10791079

1080-
The <dfn method for="Global">type(|global|)</dfn> method steps are:
1080+
The <dfn method for="Global">type()</dfn> method steps are:
10811081

10821082
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
1083-
1. Let |globaladdr| be |global|.\[[Global]].
1083+
1. Let |globaladdr| be **this**.\[[Global]].
10841084
1. Let |mut| |valuetype| be [=global_type=](|store|, |globaladdr|).
10851085
1. Return «[ "{{GlobalType/mutable}}" → |mut|, "{{GlobalType/value}}" → [$FromValueType$](|valuetype|) ]».
10861086

0 commit comments

Comments
 (0)