summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authordavidot <davidot@serenityos.org>2022-12-20 19:26:02 +0100
committerLinus Groh <mail@linusgroh.de>2023-01-23 09:56:50 +0000
commit2c87ff2218eb3d4308696991ae296b776f531104 (patch)
treeeddc27ff5734d9f7882890a44ad89a1692bc747e /Userland/Libraries/LibJS
parenta746739cb015ec2fb6e955be93e75688d6977b5b (diff)
downloadserenity-2c87ff2218eb3d4308696991ae296b776f531104.zip
LibJS: Add Symbol.dispose
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r--Userland/Libraries/LibJS/Forward.h3
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Forward.h b/Userland/Libraries/LibJS/Forward.h
index 626936eb19..c5938e98fc 100644
--- a/Userland/Libraries/LibJS/Forward.h
+++ b/Userland/Libraries/LibJS/Forward.h
@@ -133,7 +133,8 @@
__JS_ENUMERATE(unscopables, unscopables) \
__JS_ENUMERATE(species, species) \
__JS_ENUMERATE(toPrimitive, to_primitive) \
- __JS_ENUMERATE(toStringTag, to_string_tag)
+ __JS_ENUMERATE(toStringTag, to_string_tag) \
+ __JS_ENUMERATE(dispose, dispose)
#define JS_ENUMERATE_REGEXP_FLAGS \
__JS_ENUMERATE(hasIndices, has_indices, d) \
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js b/Userland/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js
index 204e69882c..9a66f974af 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Symbol/well-known-symbol-existence.js
@@ -12,4 +12,5 @@ test("basic functionality", () => {
expect(Symbol).toHaveProperty("species");
expect(Symbol).toHaveProperty("toPrimitive");
expect(Symbol).toHaveProperty("toStringTag");
+ expect(Symbol).toHaveProperty("dispose");
});