LibJS: Add @@toStringTag to Reflect

This commit is contained in:
Linus Groh 2021-06-08 19:12:14 +01:00
commit 6c256bb400
Notes: sideshowbarker 2024-07-18 12:36:34 +09:00
2 changed files with 4 additions and 0 deletions

View file

@ -78,6 +78,7 @@ void ReflectObject::initialize(GlobalObject& global_object)
define_native_function(vm.names.preventExtensions, prevent_extensions, 1, attr);
define_native_function(vm.names.set, set, 3, attr);
define_native_function(vm.names.setPrototypeOf, set_prototype_of, 2, attr);
Object::define_property(vm.well_known_symbol_to_string_tag(), js_string(vm.heap(), "Reflect"), Attribute::Configurable);
}
ReflectObject::~ReflectObject()