Robbepop edited PR #5140 from rf-cleanup-wasmi-fuzzer
to main
:
Just some minor clean ups to the
wasmi
fuzzer code.
Unfortunately due to compilation/linkage problems with the OCaml based spec interpreter I could not run the fuzz tests locally so there might be bugs that I have to fix ... :/Can we run fuzz tests via CI?
jameysharp submitted PR review.
jameysharp created PR review comment:
Does this work? I like having a separate
unwrap
for each failure case so they generate different panic messages. (rustfmt
will probably disagree with my formatting, I'm just typing in the GitHub web UI here.)Some(self.instance .get_export(&self.store, name) .unwrap() .into_global() .unwrap() .get(&self.store) .into())
If that works, I'd do the same in
get_memory
and at the top ofevaluate
.
jameysharp submitted PR review.
Robbepop created PR review comment:
haha this actually looks even cleaner to me somehow ... :sweat_smile: will apply those changes to both sites
Robbepop submitted PR review.
Robbepop edited PR review comment.
Robbepop updated PR #5140 from rf-cleanup-wasmi-fuzzer
to main
.
jameysharp submitted PR review.
jameysharp submitted PR review.
jameysharp created PR review comment:
I just noticed, I think you meant to call this function "trap_code" rather than "tap_code".
jameysharp created PR review comment:
Does
rustfmt
insist on a trailing comma here or can you delete that?
jameysharp created PR review comment:
I'd suggest the same multi-unwrap pattern here too:
.unwrap() .into_func() .unwrap();
jameysharp submitted PR review.
jameysharp created PR review comment:
According to CI,
rustfmt
is insisting on adding a trailing comma to the other use ofSome
. So I guess that answers my question, although not in the direction I was hoping for :sweat_smile:
Robbepop updated PR #5140 from rf-cleanup-wasmi-fuzzer
to main
.
Robbepop updated PR #5140 from rf-cleanup-wasmi-fuzzer
to main
.
Robbepop submitted PR review.
Robbepop created PR review comment:
good find! fixed it
Robbepop updated PR #5140 from rf-cleanup-wasmi-fuzzer
to main
.
jameysharp submitted PR review.
jameysharp merged PR #5140.
Last updated: Dec 23 2024 at 12:05 UTC