diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-08 19:12:14 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-08 19:13:14 +0100 |
commit | 6c256bb40050f83f01d80e7b936aef8e7cbcfc75 (patch) | |
tree | d23ee416afe3dbcc51185629242a7c26fc194ce0 /Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | |
parent | b377777208a8dadac848942590c0c1f39f401b5d (diff) | |
download | serenity-6c256bb40050f83f01d80e7b936aef8e7cbcfc75.zip |
LibJS: Add @@toStringTag to Reflect
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ReflectObject.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp index 0db3db5cd1..704ca31f2e 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -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() |