1
Fork 0
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:
Idan Horowitz 2021-10-16 21:56:14 +03:00 committed by Linus Groh
parent e87cea8248
commit df181809fd
4 changed files with 6 additions and 5 deletions

View file

@ -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)));