1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +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:
Ali Mohammad Pur 2021-07-01 15:12:33 +04:30 committed by Ali Mohammad Pur
parent bfb3d9e9d0
commit de4cbc8f08
2 changed files with 3 additions and 3 deletions

View file

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