1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

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
parent cdbb2cc917
commit 715e56a74c

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);
}
)~~~");