mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
Some checks failed
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Has been cancelled
CI / Lagom (false, NO_FUZZ, macos-15, macOS, Clang) (push) Has been cancelled
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Has been cancelled
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Has been cancelled
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Has been cancelled
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Has been cancelled
Run test262 and test-wasm / run_and_update_results (push) Has been cancelled
Lint Code / lint (push) Has been cancelled
Push notes / build (push) Has been cancelled
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
38 lines
752 B
C++
38 lines
752 B
C++
/*
|
|
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Contrib/Test262/262Object.h>
|
|
#include <LibJS/Runtime/GlobalObject.h>
|
|
|
|
namespace JS::Test262 {
|
|
|
|
class GlobalObject final : public JS::GlobalObject {
|
|
JS_OBJECT(GlobalObject, JS::GlobalObject);
|
|
GC_DECLARE_ALLOCATOR(GlobalObject);
|
|
|
|
public:
|
|
virtual void initialize(Realm&) override;
|
|
virtual ~GlobalObject() override = default;
|
|
|
|
$262Object* $262() const { return m_$262; }
|
|
|
|
private:
|
|
GlobalObject(JS::Realm& realm)
|
|
: JS::GlobalObject(realm)
|
|
{
|
|
}
|
|
|
|
virtual void visit_edges(Visitor&) override;
|
|
|
|
GC::Ptr<$262Object> m_$262;
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(print);
|
|
};
|
|
|
|
}
|