diff --git a/document/core/exec/modules.rst b/document/core/exec/modules.rst index 34f1298ad6..a6ed62be79 100644 --- a/document/core/exec/modules.rst +++ b/document/core/exec/modules.rst @@ -657,19 +657,17 @@ It is up to the :ref:`embedder ` to define how such conditions are rep 14. For each :ref:`element segment ` :math:`\elem_i` in :math:`\module.\MELEMS` whose :ref:`mode ` is of the form :math:`\EACTIVE~\{ \ETABLE~\tableidx_i, \EOFFSET~\X{einstr}^\ast_i~\END \}`, do: - a. Assert: :math:`\tableidx_i` is :math:`0`. + a. Let :math:`n` be the length of the vector :math:`\elem_i.\EINIT`. - b. Let :math:`n` be the length of the vector :math:`\elem_i.\EINIT`. + b. :ref:`Execute ` the instruction sequence :math:`\X{einstr}^\ast_i`. - c. :ref:`Execute ` the instruction sequence :math:`\X{einstr}^\ast_i`. + c. :ref:`Execute ` the instruction :math:`\I32.\CONST~0`. - d. :ref:`Execute ` the instruction :math:`\I32.\CONST~0`. - - e. :ref:`Execute ` the instruction :math:`\I32.\CONST~n`. + d. :ref:`Execute ` the instruction :math:`\I32.\CONST~n`. - f. :ref:`Execute ` the instruction :math:`\TABLEINIT~i`. + e. :ref:`Execute ` the instruction :math:`\TABLEINIT~\tableidx_i~i`. - g. :ref:`Execute ` the instruction :math:`\ELEMDROP~i`. + f. :ref:`Execute ` the instruction :math:`\ELEMDROP~i`. 15. For each :ref:`data segment ` :math:`\data_i` in :math:`\module.\MDATAS` whose :ref:`mode ` is of the form :math:`\DACTIVE~\{ \DMEM~\memidx_i, \DOFFSET~\X{dinstr}^\ast_i~\END \}`, do: