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