VolodymyrBg requested alexcrichton for a review on PR #10360.
VolodymyrBg opened PR #10360 from VolodymyrBg:BG
to bytecodealliance:main
:
Previously, the CLI interface would only accept base-10 (decimal) integers when
passing arguments to WebAssembly functions. This change adds support for
hexadecimal notation with the '0x' prefix.Now users can pass hexadecimal values directly to functions that expect integer
arguments, making it more convenient to work with bit patterns, addresses, and
other values commonly represented in hexadecimal format.Fixes the TODO comment in the run.rs file that requested this feature.
VolodymyrBg requested wasmtime-core-reviewers for a review on PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
alexcrichton commented on PR #10360:
I think this may have lost the tests from https://github.com/bytecodealliance/wasmtime/pull/9989?
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg commented on PR #10360:
@alexcrichton corrected
alexcrichton submitted PR review.
alexcrichton created PR review comment:
This unfortunately has the behavior that
ff
is interpreted as 255 since thetrim_start_matches
is an optional trim rather than a required trim. Could this be refactored to require the0x
prefix for hexadecimal arguments?
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg updated PR #10360.
VolodymyrBg requested alexcrichton for a review on PR #10360.
alexcrichton submitted PR review:
Thanks!
alexcrichton merged PR #10360.
Last updated: Apr 17 2025 at 07:03 UTC