Truly independent web browser
/*
* Copyright (c) 2020, Andreas Kling <[email protected]>
* Copyright (c) 2020-2022, Linus Groh <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGC/Heap.h>
#include <LibJS/Export.h>
#include <LibJS/Runtime/Environment.h>
#include <LibJS/Runtime/Object.h>
#include <LibJS/Runtime/VM.h>
namespace JS {
// The ordinary global object of a realm whose host does not create one, and the runtime's own global objects, which
// extend it. A host's global object is a host object of a class with JS_HOST_CLASS_IS_GLOBAL_OBJECT instead.
class JS_API GlobalObject : public Object {
public:
static bool is_engine_class_of(Object const& object) { return object.is_of_engine_class_or_subclass(JS_LAYOUT_CLASS_ID_GLOBAL_OBJECT); }
};
}