summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Forward.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-06-15 22:16:17 +0300
committerLinus Groh <mail@linusgroh.de>2021-06-15 23:59:21 +0100
commitde9fa6622a52ff71ad59c8de01af7b1e9274a10d (patch)
treed1b9b0d94806d4e6af9b2382e54fdaa3cd1ed898 /Userland/Libraries/LibJS/Forward.h
parent8c7fe8d6c8cca71334c3b46ed201809843d9cf07 (diff)
downloadserenity-de9fa6622a52ff71ad59c8de01af7b1e9274a10d.zip
LibJS: Add the FinalizationRegistry built-in object
As well as the needed functionality in VM to enqueue and run cleanup jobs for the FinalizationRegistry instances.
Diffstat (limited to 'Userland/Libraries/LibJS/Forward.h')
-rw-r--r--Userland/Libraries/LibJS/Forward.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/Userland/Libraries/LibJS/Forward.h b/Userland/Libraries/LibJS/Forward.h
index 20efeb8549..cba564d68b 100644
--- a/Userland/Libraries/LibJS/Forward.h
+++ b/Userland/Libraries/LibJS/Forward.h
@@ -25,26 +25,27 @@
void name([[maybe_unused]] JS::VM& vm, [[maybe_unused]] JS::GlobalObject& global_object, [[maybe_unused]] JS::Value value)
// NOTE: Proxy is not included here as it doesn't have a prototype - m_proxy_constructor is initialized separately.
-#define JS_ENUMERATE_NATIVE_OBJECTS_EXCLUDING_TEMPLATES \
- __JS_ENUMERATE(AggregateError, aggregate_error, AggregateErrorPrototype, AggregateErrorConstructor, void) \
- __JS_ENUMERATE(Array, array, ArrayPrototype, ArrayConstructor, void) \
- __JS_ENUMERATE(ArrayBuffer, array_buffer, ArrayBufferPrototype, ArrayBufferConstructor, void) \
- __JS_ENUMERATE(BigIntObject, bigint, BigIntPrototype, BigIntConstructor, void) \
- __JS_ENUMERATE(BooleanObject, boolean, BooleanPrototype, BooleanConstructor, void) \
- __JS_ENUMERATE(DataView, data_view, DataViewPrototype, DataViewConstructor, void) \
- __JS_ENUMERATE(Date, date, DatePrototype, DateConstructor, void) \
- __JS_ENUMERATE(Error, error, ErrorPrototype, ErrorConstructor, void) \
- __JS_ENUMERATE(Function, function, FunctionPrototype, FunctionConstructor, void) \
- __JS_ENUMERATE(Map, map, MapPrototype, MapConstructor, void) \
- __JS_ENUMERATE(NumberObject, number, NumberPrototype, NumberConstructor, void) \
- __JS_ENUMERATE(Object, object, ObjectPrototype, ObjectConstructor, void) \
- __JS_ENUMERATE(Promise, promise, PromisePrototype, PromiseConstructor, void) \
- __JS_ENUMERATE(RegExpObject, regexp, RegExpPrototype, RegExpConstructor, void) \
- __JS_ENUMERATE(Set, set, SetPrototype, SetConstructor, void) \
- __JS_ENUMERATE(StringObject, string, StringPrototype, StringConstructor, void) \
- __JS_ENUMERATE(SymbolObject, symbol, SymbolPrototype, SymbolConstructor, void) \
- __JS_ENUMERATE(WeakMap, weak_map, WeakMapPrototype, WeakMapConstructor, void) \
- __JS_ENUMERATE(WeakRef, weak_ref, WeakRefPrototype, WeakRefConstructor, void) \
+#define JS_ENUMERATE_NATIVE_OBJECTS_EXCLUDING_TEMPLATES \
+ __JS_ENUMERATE(AggregateError, aggregate_error, AggregateErrorPrototype, AggregateErrorConstructor, void) \
+ __JS_ENUMERATE(Array, array, ArrayPrototype, ArrayConstructor, void) \
+ __JS_ENUMERATE(ArrayBuffer, array_buffer, ArrayBufferPrototype, ArrayBufferConstructor, void) \
+ __JS_ENUMERATE(BigIntObject, bigint, BigIntPrototype, BigIntConstructor, void) \
+ __JS_ENUMERATE(BooleanObject, boolean, BooleanPrototype, BooleanConstructor, void) \
+ __JS_ENUMERATE(DataView, data_view, DataViewPrototype, DataViewConstructor, void) \
+ __JS_ENUMERATE(Date, date, DatePrototype, DateConstructor, void) \
+ __JS_ENUMERATE(Error, error, ErrorPrototype, ErrorConstructor, void) \
+ __JS_ENUMERATE(FinalizationRegistry, finalization_registry, FinalizationRegistryPrototype, FinalizationRegistryConstructor, void) \
+ __JS_ENUMERATE(Function, function, FunctionPrototype, FunctionConstructor, void) \
+ __JS_ENUMERATE(Map, map, MapPrototype, MapConstructor, void) \
+ __JS_ENUMERATE(NumberObject, number, NumberPrototype, NumberConstructor, void) \
+ __JS_ENUMERATE(Object, object, ObjectPrototype, ObjectConstructor, void) \
+ __JS_ENUMERATE(Promise, promise, PromisePrototype, PromiseConstructor, void) \
+ __JS_ENUMERATE(RegExpObject, regexp, RegExpPrototype, RegExpConstructor, void) \
+ __JS_ENUMERATE(Set, set, SetPrototype, SetConstructor, void) \
+ __JS_ENUMERATE(StringObject, string, StringPrototype, StringConstructor, void) \
+ __JS_ENUMERATE(SymbolObject, symbol, SymbolPrototype, SymbolConstructor, void) \
+ __JS_ENUMERATE(WeakMap, weak_map, WeakMapPrototype, WeakMapConstructor, void) \
+ __JS_ENUMERATE(WeakRef, weak_ref, WeakRefPrototype, WeakRefConstructor, void) \
__JS_ENUMERATE(WeakSet, weak_set, WeakSetPrototype, WeakSetConstructor, void)
#define JS_ENUMERATE_NATIVE_OBJECTS \