mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
parent
fde26c53f0
commit
18c54d8d40
804 changed files with 1330 additions and 2171 deletions
|
@ -70,7 +70,7 @@ public:
|
|||
instance->m_module_instance = result.release_value();
|
||||
return instance.ptr();
|
||||
}
|
||||
JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
||||
void initialize(JS::Realm&) override;
|
||||
|
||||
~WebAssemblyModule() override = default;
|
||||
|
||||
|
@ -148,13 +148,11 @@ TESTJS_GLOBAL_FUNCTION(compare_typed_arrays, compareTypedArrays)
|
|||
return JS::Value(lhs_array.viewed_array_buffer()->buffer() == rhs_array.viewed_array_buffer()->buffer());
|
||||
}
|
||||
|
||||
JS::ThrowCompletionOr<void> WebAssemblyModule::initialize(JS::Realm& realm)
|
||||
void WebAssemblyModule::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
define_native_function(realm, "getExport", get_export, 1, JS::default_attributes);
|
||||
define_native_function(realm, "invoke", wasm_invoke, 1, JS::default_attributes);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::get_export)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue