diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-11-30 16:18:29 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-30 18:21:02 +0100 |
commit | 715e56a74cca71f1e8e0ce7b87e424edbf1e0c6a (patch) | |
tree | 0d8d4429112e2513c58670a32ba4d3c1f2dfb7ee /Meta | |
parent | cdbb2cc9176d89703d383b121a8fd561de249771 (diff) | |
download | serenity-715e56a74cca71f1e8e0ce7b87e424edbf1e0c6a.zip |
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.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index 01859e556b..a316d696a9 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -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); } )~~~"); |