mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 02:20:17 +00:00
LibWeb: Stub wasm exceptions and memory64 API modifications
This commit is contained in:
parent
d99f663b1a
commit
33d2959a4c
Notes:
github-actions[bot]
2025-10-14 23:28:52 +00:00
Author: https://github.com/alimpfard
Commit: 33d2959a4c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6278
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/gmta
4 changed files with 18 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ WebIDL::ExceptionOr<GC::Ref<Table>> Table::construct_impl(JS::Realm& realm, Tabl
|
|||
if (descriptor.maximum.has_value() && descriptor.maximum.value() < descriptor.initial)
|
||||
return vm.throw_completion<JS::RangeError>("Maximum should not be less than initial in table type"sv);
|
||||
|
||||
Wasm::Limits limits { descriptor.initial, move(descriptor.maximum) };
|
||||
Wasm::Limits limits { Wasm::AddressType::I32, descriptor.initial, descriptor.maximum.map([](auto x) -> u64 { return x; }) };
|
||||
Wasm::TableType table_type { reference_type, move(limits) };
|
||||
|
||||
auto& cache = Detail::get_cache(realm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue