LibWasm: test-wasm: Default initialize u128 parameter bits to 0

This fixes 326 tests.

18802 failed without
18476 failed with.
This commit is contained in:
Enver Balalic 2024-06-08 23:13:03 +02:00 committed by Ali Mohammad Pur
parent 666f7338a0
commit 64e27cb659
Notes: sideshowbarker 2024-07-17 07:08:37 +09:00

View file

@ -234,7 +234,7 @@ JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::wasm_invoke)
argument = TRY(argument.to_bigint(vm));
}
u128 bits;
u128 bits = 0;
(void)argument.as_bigint().big_integer().unsigned_value().export_data({ bit_cast<u8*>(&bits), sizeof(bits) });
VERIFY(!argument.as_bigint().big_integer().is_negative());