mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
LibWeb: Port Intrinsics from DeprecatedString
This commit is contained in:
parent
9cd36839d2
commit
96af80acd1
279 changed files with 305 additions and 304 deletions
|
@ -45,7 +45,7 @@ void Instance::initialize(JS::Realm& realm)
|
|||
auto& vm = this->vm();
|
||||
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::InstancePrototype>(realm, "WebAssembly.Instance"sv));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::InstancePrototype>(realm, "WebAssembly.Instance"_fly_string));
|
||||
|
||||
auto& instance = *Detail::s_instantiated_modules[m_index];
|
||||
auto& cache = Detail::s_module_caches.at(m_index);
|
||||
|
|
|
@ -44,7 +44,7 @@ Memory::Memory(JS::Realm& realm, Wasm::MemoryAddress address)
|
|||
void Memory::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::MemoryPrototype>(realm, "WebAssembly.Memory"sv));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::MemoryPrototype>(realm, "WebAssembly.Memory"_fly_string));
|
||||
}
|
||||
|
||||
// https://webassembly.github.io/spec/js-api/#dom-memory-grow
|
||||
|
|
|
@ -34,7 +34,7 @@ Module::Module(JS::Realm& realm, size_t index)
|
|||
void Module::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::ModulePrototype>(realm, "WebAssembly.Module"sv));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::ModulePrototype>(realm, "WebAssembly.Module"_fly_string));
|
||||
}
|
||||
|
||||
Wasm::Module const& Module::module() const
|
||||
|
|
|
@ -66,7 +66,7 @@ Table::Table(JS::Realm& realm, Wasm::TableAddress address)
|
|||
void Table::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::TablePrototype>(realm, "WebAssembly.Table"sv));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::TablePrototype>(realm, "WebAssembly.Table"_fly_string));
|
||||
}
|
||||
|
||||
// https://webassembly.github.io/spec/js-api/#dom-table-grow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue