diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp index 7158152b17..94aa81905f 100644 --- a/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp @@ -20,12 +20,12 @@ LocationConstructor::~LocationConstructor() = default; JS::ThrowCompletionOr<JS::Value> LocationConstructor::call() { - return vm().throw_completion<JS::TypeError>(global_object(), JS::ErrorType::ConstructorWithoutNew, "Location"); + return vm().throw_completion<JS::TypeError>(JS::ErrorType::ConstructorWithoutNew, "Location"); } JS::ThrowCompletionOr<JS::Object*> LocationConstructor::construct(FunctionObject&) { - return vm().throw_completion<JS::TypeError>(global_object(), JS::ErrorType::NotAConstructor, "Location"); + return vm().throw_completion<JS::TypeError>(JS::ErrorType::NotAConstructor, "Location"); } void LocationConstructor::initialize(JS::Realm& realm) |