Skip to content

Commit

Permalink
Drop declarative elements on module instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjamesr committed Nov 21, 2024
1 parent f1d03db commit f21e3f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/iwasm/interpreter/wasm_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,8 @@ wasm_instantiate(WASMModule *module, WASMModuleInstance *parent,
goto fail;
}
for (i = 0; i < module->table_seg_count; i++) {
if (wasm_elem_is_active(module->table_segments[i].mode))
if (wasm_elem_is_active(module->table_segments[i].mode) ||
wasm_elem_is_declarative(module->table_segments[i].mode))
bh_bitmap_set_bit(module_inst->e->common.elem_dropped, i);
}
}
Expand Down

0 comments on commit f21e3f3

Please sign in to comment.