mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb/WebAssembly+test-wasm: Use get_without_side_effects() more
This commit is contained in:
@@ -37,8 +37,8 @@ JS::Value WebAssemblyMemoryConstructor::construct(FunctionObject&)
|
||||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
auto initial_value = descriptor->get_own_property("initial", {}, JS::AllowSideEffects::No);
|
||||
auto maximum_value = descriptor->get_own_property("maximum", {}, JS::AllowSideEffects::No);
|
||||
auto initial_value = descriptor->get_without_side_effects("initial");
|
||||
auto maximum_value = descriptor->get_without_side_effects("maximum");
|
||||
|
||||
if (initial_value.is_empty()) {
|
||||
vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "Number");
|
||||
|
||||
Reference in New Issue
Block a user