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
csgui
changed the title
var-get should thrown a runtime error if variable does not exists
var-get should throw a runtime error if variable does not exist
Apr 17, 2024
For now,
var-get
on an non-existing variable could lead to the generation of invalid Wasm code.To remedy this, there is an "easy enough" fix to write:
link_get_variable_fn
to write an optional Value to the memory;get-var
to unwrap the optional, and return a runtime error if it's none.The text was updated successfully, but these errors were encountered: