mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Use the correct name to refer to WebAssembly.Memory.prototype
Otherwise `instanceof` wouldn't return the correct result.
This commit is contained in:
parent
bfb3d9e9d0
commit
de4cbc8f08
Notes:
sideshowbarker
2024-07-18 11:08:53 +09:00
Author: https://github.com/alimpfard
Commit: de4cbc8f08
Pull-request: https://github.com/SerenityOS/serenity/pull/8358
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/linusg
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ void WebAssemblyMemoryConstructor::initialize(JS::GlobalObject& global_object)
|
|||
auto& window = static_cast<WindowObject&>(global_object);
|
||||
|
||||
NativeFunction::initialize(global_object);
|
||||
define_property(vm.names.prototype, &window.ensure_web_prototype<WebAssemblyMemoryPrototype>("WebAssembly.Memory"));
|
||||
define_property(vm.names.prototype, &window.ensure_web_prototype<WebAssemblyMemoryPrototype>("WebAssemblyMemoryPrototype"));
|
||||
define_property(vm.names.length, JS::Value(1), JS::Attribute::Configurable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue