• Clemens Backes's avatar
    [wasm][fuzzer] Fix BigInt parameters · 2d78b3a7
    Clemens Backes authored
    The fuzzers were calling the compiled function without passing explicit
    arguments. Thus all arguments were converted from the "undefined" value,
    which typically results in a zero value, as expected.
    For BigInt though, it's not allowed to pass "undefined". We have to pass
    a proper BigInt.
    This CL implements this by passing explicit parameter values for all
    parameters.
    
    This effectively unlocks testing BigInt parameters in all fuzzers, thus
    may increase coverage and find new bugs.
    
    R=ahaas@chromium.org
    
    Bug: chromium:1120355
    Change-Id: I4e451d2418eb73d460fa937d1cf95a1ab6c99cf5
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2377945
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69570}
    2d78b3a7
wasm-module-runner.h 4.67 KB