mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-03 12:52:31 +02: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:
committed by
Ali Mohammad Pur
parent
bfb3d9e9d0
commit
de4cbc8f08
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user