summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-27 18:45:21 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-27 20:26:58 +0200
commitf79d4c7347c1d5a9ca4dbc8fb4b1bfeb74c1d3a3 (patch)
treefb92b1a87707275b031ee2bcbf62f28a53b3d2c8 /Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
parent340a115dfe9518eae3d76154fba9092c36526430 (diff)
downloadserenity-f79d4c7347c1d5a9ca4dbc8fb4b1bfeb74c1d3a3.zip
LibJS: Remove Interpreter& argument to Function::construct()
This is no longer needed, we can get everything we need from the VM.
Diffstat (limited to 'Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp')
-rw-r--r--Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp b/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
index fb8a26098c..f66f827034 100644
--- a/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
+++ b/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
@@ -58,13 +58,13 @@ XMLHttpRequestConstructor::~XMLHttpRequestConstructor()
JS::Value XMLHttpRequestConstructor::call()
{
- return construct(interpreter(), *this);
+ return construct(*this);
}
-JS::Value XMLHttpRequestConstructor::construct(JS::Interpreter& interpreter, Function&)
+JS::Value XMLHttpRequestConstructor::construct(Function&)
{
auto& window = static_cast<WindowObject&>(global_object());
- return interpreter.heap().allocate<XMLHttpRequestWrapper>(window, window, XMLHttpRequest::create(window.impl()));
+ return heap().allocate<XMLHttpRequestWrapper>(window, window, XMLHttpRequest::create(window.impl()));
}
}