summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/classes/class-static-getters.js
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/classes/class-static-getters.js')
-rw-r--r--Userland/Libraries/LibJS/Tests/classes/class-static-getters.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/classes/class-static-getters.js b/Userland/Libraries/LibJS/Tests/classes/class-static-getters.js
index c158a00595..0801cec0a6 100644
--- a/Userland/Libraries/LibJS/Tests/classes/class-static-getters.js
+++ b/Userland/Libraries/LibJS/Tests/classes/class-static-getters.js
@@ -85,3 +85,14 @@ describe("errors", () => {
}`).not.toEval();
});
});
+
+test("static getter named 'async'", () => {
+ class A {
+ static get async() {
+ return "static getter named async";
+ }
+ }
+
+ expect("async" in A).toBeTrue();
+ expect(A.async).toBe("static getter named async");
+});