mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibCrypto: Convert SignedBigInteger::import_data to accept Bytes
This brings it up to par with UnsignedBigInteger.
This commit is contained in:
parent
b0fdbe3756
commit
110136b862
Notes:
github-actions[bot]
2025-08-05 07:10:20 +00:00
Author: https://github.com/IdanHo
Commit: 110136b862
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5708
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/trflynn89
3 changed files with 5 additions and 6 deletions
|
@ -310,7 +310,7 @@ JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::get_export)
|
|||
return JS::Value(global->value().to<double>());
|
||||
case Wasm::ValueType::V128: {
|
||||
auto value = global->value().to<u128>();
|
||||
return JS::BigInt::create(vm, Crypto::SignedBigInteger::import_data(bit_cast<u8 const*>(&value), sizeof(u128)));
|
||||
return JS::BigInt::create(vm, Crypto::SignedBigInteger::import_data(value.bytes()));
|
||||
}
|
||||
case Wasm::ValueType::FunctionReference:
|
||||
case Wasm::ValueType::ExternReference:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue