mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibWeb/WebAssembly+test-wasm: Use get_without_side_effects() more
This commit is contained in:
parent
9fd9e424ff
commit
1ac3d253c5
2 changed files with 3 additions and 3 deletions
|
@ -119,7 +119,7 @@ TESTJS_GLOBAL_FUNCTION(parse_webassembly_module, parseWebAssemblyModule)
|
|||
if (import_value.is_object()) {
|
||||
auto& import_object = import_value.as_object();
|
||||
for (auto& property : import_object.shape().property_table()) {
|
||||
auto value = import_object.get_own_property(property.key, {}, JS::AllowSideEffects::No);
|
||||
auto value = import_object.get_without_side_effects(property.key);
|
||||
if (!value.is_object() || !is<WebAssemblyModule>(value.as_object()))
|
||||
continue;
|
||||
auto& module_object = static_cast<WebAssemblyModule&>(value.as_object());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue