LibJS: Add the Set built-in object

This commit is contained in:
Idan Horowitz
2021-06-09 00:08:47 +03:00
committed by Linus Groh
parent b17a282b4b
commit 670be04c81
15 changed files with 359 additions and 30 deletions

View File

@@ -43,7 +43,7 @@ void WindowObject::initialize_global_object()
{
Base::initialize_global_object();
set_prototype(&ensure_web_prototype<EventTargetPrototype>("EventTarget"));
Object::set_prototype(&ensure_web_prototype<EventTargetPrototype>("EventTarget"));
define_property("window", this, JS::Attribute::Enumerable);
define_property("frames", this, JS::Attribute::Enumerable);