1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:37:47 +00:00

LibJS: Implement Temporal.PlainDateTime.prototype[@@toStringTag]

This commit is contained in:
Linus Groh 2021-07-22 19:50:12 +01:00
parent 4be3196882
commit 591ee813fb
2 changed files with 8 additions and 0 deletions

View file

@ -18,6 +18,11 @@ PlainDateTimePrototype::PlainDateTimePrototype(GlobalObject& global_object)
void PlainDateTimePrototype::initialize(GlobalObject& global_object)
{
Object::initialize(global_object);
auto& vm = this->vm();
// 5.3.2 Temporal.PlainDateTime.prototype[ @@toStringTag ], https://tc39.es/proposal-temporal/#sec-temporal.plaindatetime.prototype-@@tostringtag
define_direct_property(*vm.well_known_symbol_to_string_tag(), js_string(vm.heap(), "Temporal.PlainDateTime"), Attribute::Configurable);
}
}