LibWeb: Add @@toStringTag to platform object prototypes

This was forgotten to be added in the LibWeb GC conversion.
This caused some brand checks to fail in skribbl.io's JavaScript and
thus caused unexpected exceptions.
This commit is contained in:
Luke Wilde 2022-11-30 16:18:29 +00:00 committed by Andreas Kling
commit 715e56a74c
Notes: sideshowbarker 2024-07-17 06:35:16 +09:00

View file

@ -2574,6 +2574,8 @@ void @prototype_class@::initialize(JS::Realm& realm)
}
generator.append(R"~~~(
define_direct_property(*vm.well_known_symbol_to_string_tag(), js_string(vm, "@name@"), JS::Attribute::Configurable);
Object::initialize(realm);
}
)~~~");