mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb/WebAssembly+test-wasm: Use get_without_side_effects() more
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 10:27:02 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/1ac3d253c52 Pull-request: https://github.com/SerenityOS/serenity/pull/8262 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/davidot Reviewed-by: https://github.com/mattco98
@@ -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