diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-02 19:18:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-02 20:41:31 +0200 |
commit | 99be27b4a18162b93fc99de79e0b737f3f401690 (patch) | |
tree | 42b1daeb38750be72ffa15b0c672a2e4af699b59 /Libraries/LibWeb/Bindings | |
parent | d007e8d00f802fd57661e250f99ae95976f7bd13 (diff) | |
download | serenity-99be27b4a18162b93fc99de79e0b737f3f401690.zip |
LibJS: Add "name" property to functions
Diffstat (limited to 'Libraries/LibWeb/Bindings')
-rw-r--r-- | Libraries/LibWeb/Bindings/WindowObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/WindowObject.cpp b/Libraries/LibWeb/Bindings/WindowObject.cpp index 0e00bb6861..bab0a17316 100644 --- a/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -64,7 +64,7 @@ void WindowObject::initialize() m_xhr_prototype = heap().allocate<XMLHttpRequestPrototype>(); m_xhr_constructor = heap().allocate<XMLHttpRequestConstructor>(); m_xhr_constructor->put("prototype", m_xhr_prototype, 0); - put("XMLHttpRequest", m_xhr_constructor, JS::Attribute::Writable | JS::Attribute::Configurable); + add_constructor("XMLHttpRequest", m_xhr_constructor, *m_xhr_prototype); } WindowObject::~WindowObject() |