From 22b17219ff85f666f2ddc81347be8d6117740af6 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Tue, 15 Jun 2021 00:04:08 -0700 Subject: LibJS: Add the remaining generator objects - %GeneratorFunction% - %GeneratorFunction.prototype% - %GeneratorFunction.prototype.prototype% - %Generator%.prototype --- Userland/Libraries/LibJS/Forward.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Userland/Libraries/LibJS/Forward.h') diff --git a/Userland/Libraries/LibJS/Forward.h b/Userland/Libraries/LibJS/Forward.h index 4a4dd1eb7a..a8fae90d78 100644 --- a/Userland/Libraries/LibJS/Forward.h +++ b/Userland/Libraries/LibJS/Forward.h @@ -36,6 +36,7 @@ __JS_ENUMERATE(Error, error, ErrorPrototype, ErrorConstructor, void) \ __JS_ENUMERATE(FinalizationRegistry, finalization_registry, FinalizationRegistryPrototype, FinalizationRegistryConstructor, void) \ __JS_ENUMERATE(Function, function, FunctionPrototype, FunctionConstructor, void) \ + __JS_ENUMERATE(GeneratorFunction, generator_function, GeneratorFunctionPrototype, GeneratorFunctionConstructor, void) \ __JS_ENUMERATE(Map, map, MapPrototype, MapConstructor, void) \ __JS_ENUMERATE(NumberObject, number, NumberPrototype, NumberConstructor, void) \ __JS_ENUMERATE(Object, object, ObjectPrototype, ObjectConstructor, void) \ @@ -159,6 +160,9 @@ struct PromiseCapability; class ProxyObject; class ProxyConstructor; +// Not included in JS_ENUMERATE_NATIVE_OBJECTS due to missing distinct constructor +class GeneratorObjectPrototype; + class TypedArrayConstructor; class TypedArrayPrototype; -- cgit v1.2.3