You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/path/to/wabt/bin/wasm-validate --enable-all --run-export=main /path/to/test/program.wasm
error: initializer expression can only reference an imported global
Expected Behavior
Element segment offset expressions should be able to reference both imported and non-imported globals. The module should pass validation without errors.
The text was updated successfully, but these errors were encountered:
wasm-interp
does not correctly handle element segment initialization usingglobal.get
for non-imported globals.Test case
program.wasm
program.wasm.txt
Environment
Actual behavior
Expected Behavior
Element segment offset expressions should be able to reference both imported and non-imported globals. The module should pass validation without errors.
The text was updated successfully, but these errors were encountered: