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:
parent
cdbb2cc917
commit
715e56a74c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
)~~~");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue