Skip to content

Commit 5b18d52

Browse files
authored
[spec] Add missing type to elem.drop and store soundness (#1668)
1 parent 6315e12 commit 5b18d52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

document/core/appendix/properties.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ Module instances are classified by *module contexts*, which are regular :ref:`co
278278
.. index:: element instance, reference
279279
.. _valid-eleminst:
280280

281-
:ref:`Element Instances <syntax-eleminst>` :math:`\{ \EIELEM~\X{fa}^\ast \}`
282-
............................................................................
281+
:ref:`Element Instances <syntax-eleminst>` :math:`\{ \EITYPE~t, \EIELEM~\reff^\ast \}`
282+
......................................................................................
283283

284284
* For each :ref:`reference <syntax-ref>` :math:`\reff_i` in the elements :math:`\reff^n`:
285285

document/core/exec/instructions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ Table Instructions
16821682

16831683
4. Assert: due to :ref:`validation <valid-elem.drop>`, :math:`S.\SELEMS[a]` exists.
16841684

1685-
5. Replace :math:`S.\SELEMS[a]` with the :ref:`element instance <syntax-eleminst>` :math:`\{\EIELEM~\epsilon\}`.
1685+
5. Replace :math:`S.\SELEMS[a].\EIELEM` with :math:`\epsilon`.
16861686

16871687
.. math::
16881688
~\\[-1ex]
@@ -1691,7 +1691,7 @@ Table Instructions
16911691
S; F; (\ELEMDROP~x) &\stepto& S'; F; \epsilon
16921692
\end{array}
16931693
\\ \qquad
1694-
(\iff S' = S \with \SELEMS[F.\AMODULE.\MIELEMS[x]] = \{ \EIELEM~\epsilon \}) \\
1694+
(\iff S' = S \with \SELEMS[F.\AMODULE.\MIELEMS[x]].\EIELEM = \epsilon) \\
16951695
\end{array}
16961696
16971697

0 commit comments

Comments
 (0)