1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27:35 +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:
Timothy Flynn 2021-07-10 22:53:54 -04:00 committed by Linus Groh
parent df75c35d5b
commit a61723ec59
6 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,4 @@
test("basic functionality", () => {
expect(Atomics[Symbol.toStringTag]).toBe("Atomics");
expect(Atomics.toString()).toBe("[object Atomics]");
});