mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibJS: Convert to_bigint_int64() to ThrowCompletionOr
This commit is contained in:
parent
e87cea8248
commit
df181809fd
4 changed files with 6 additions and 5 deletions
|
@ -229,7 +229,7 @@ JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::wasm_invoke)
|
|||
break;
|
||||
case Wasm::ValueType::Kind::I64:
|
||||
if (argument.is_bigint()) {
|
||||
auto value = argument.to_bigint_int64(global_object);
|
||||
auto value = TRY_OR_DISCARD(argument.to_bigint_int64(global_object));
|
||||
arguments.append(Wasm::Value(param, bit_cast<u64>(value)));
|
||||
} else {
|
||||
arguments.append(Wasm::Value(param, static_cast<u64>(double_value)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue