summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-27 17:24:14 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-27 20:26:58 +0200
commit1ff9d33131921d97b5de99496f933bcebeb4faaa (patch)
tree4acdaf985eacab8d64820535272a6d50d7b3a0a7 /Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
parentbe31805e8be783145c3b5909ea99144a7c737e32 (diff)
downloadserenity-1ff9d33131921d97b5de99496f933bcebeb4faaa.zip
LibJS: Make Function::call() not require an Interpreter&
This makes a difference inside ScriptFunction::call(), which will now instantiate a temporary Interpreter if one is not attached to the VM.
Diffstat (limited to 'Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp')
-rw-r--r--Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp b/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
index 4c70b91743..fb8a26098c 100644
--- a/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
+++ b/Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp
@@ -56,9 +56,9 @@ XMLHttpRequestConstructor::~XMLHttpRequestConstructor()
{
}
-JS::Value XMLHttpRequestConstructor::call(JS::Interpreter& interpreter)
+JS::Value XMLHttpRequestConstructor::call()
{
- return construct(interpreter, *this);
+ return construct(interpreter(), *this);
}
JS::Value XMLHttpRequestConstructor::construct(JS::Interpreter& interpreter, Function&)