mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibJS: Begin implementing Atomics
This adds the Atomics object to the global object and sets up only its @@toStringTag property.
This commit is contained in:
parent
df75c35d5b
commit
a61723ec59
6 changed files with 57 additions and 0 deletions
22
Userland/Libraries/LibJS/Runtime/AtomicsObject.h
Normal file
22
Userland/Libraries/LibJS/Runtime/AtomicsObject.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
class AtomicsObject : public Object {
|
||||
JS_OBJECT(AtomicsObject, Object);
|
||||
|
||||
public:
|
||||
explicit AtomicsObject(GlobalObject&);
|
||||
virtual void initialize(GlobalObject&) override;
|
||||
virtual ~AtomicsObject() override = default;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue