/* * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Web::HTML { JS::NonnullGCPtr WorkerNavigator::create(WorkerGlobalScope& global_scope) { return global_scope.heap().allocate(global_scope.realm(), global_scope); } WorkerNavigator::WorkerNavigator(WorkerGlobalScope& global_scope) : PlatformObject(global_scope.realm()) { set_prototype(&Bindings::cached_web_prototype(global_scope.realm(), "WorkerNavigator")); } WorkerNavigator::~WorkerNavigator() = default; }