Skip to content

Commit f113ac4

Browse files
bvisnessrossberg
authored andcommitted
[spec] Add missing type to elem.drop and store soundness (#1668)
1 parent 2e280f6 commit f113ac4

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
@@ -300,8 +300,8 @@ Module instances are classified by *module contexts*, which are regular :ref:`co
300300
.. index:: element instance, reference
301301
.. _valid-eleminst:
302302

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

306306
* The :ref:`reference type <syntax-reftype>` :math:`t` must be :ref:`valid <valid-reftype>` under the empty :ref:`context <context>`.
307307

document/core/exec/instructions.rst

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

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

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

17111711
.. math::
17121712
~\\[-1ex]
@@ -1715,7 +1715,7 @@ Table Instructions
17151715
S; F; (\ELEMDROP~x) &\stepto& S'; F; \epsilon
17161716
\end{array}
17171717
\\ \qquad
1718-
(\iff S' = S \with \SELEMS[F.\AMODULE.\MIELEMS[x]] = \{ \EIELEM~\epsilon \}) \\
1718+
(\iff S' = S \with \SELEMS[F.\AMODULE.\MIELEMS[x]].\EIELEM = \epsilon) \\
17191719
\end{array}
17201720
17211721

0 commit comments

Comments
 (0)