1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 15:18:11 +00:00

LibWeb/WebAssembly+test-wasm: Use get_without_side_effects() more

This commit is contained in:
Linus Groh 2021-07-03 22:38:30 +01:00
parent 9fd9e424ff
commit 1ac3d253c5
2 changed files with 3 additions and 3 deletions

View file

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