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