diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-27 18:45:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-27 20:26:58 +0200 |
commit | f79d4c7347c1d5a9ca4dbc8fb4b1bfeb74c1d3a3 (patch) | |
tree | fb92b1a87707275b031ee2bcbf62f28a53b3d2c8 /Libraries/LibWeb/Bindings/XMLHttpRequestConstructor.cpp | |
parent | 340a115dfe9518eae3d76154fba9092c36526430 (diff) | |
download | serenity-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.cpp | 6 |
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())); } } |