From 5e75afd5498db859dc8ab8014555c455b5798f8d Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Sun, 21 Apr 2024 08:29:38 +0100 Subject: [PATCH] LibWeb: Fix typo in extended `WithGCVisitor` extended attribute name --- .../CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp | 4 ++-- Userland/Libraries/LibWeb/WebAssembly/WebAssembly.idl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index 5e0adac8831..d34ef4b6216 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -3697,7 +3697,7 @@ public: private: )~~~"); - if (interface.extended_attributes.contains("WithGCVistor"sv)) { + if (interface.extended_attributes.contains("WithGCVisitor"sv)) { generator.append(R"~~~( virtual void visit_edges(JS::Cell::Visitor&) override; )~~~"); @@ -3825,7 +3825,7 @@ void @namespace_class@::initialize(JS::Realm& realm) } )~~~"); - if (interface.extended_attributes.contains("WithGCVistor"sv)) { + if (interface.extended_attributes.contains("WithGCVisitor"sv)) { generator.append(R"~~~( void @namespace_class@::visit_edges(JS::Cell::Visitor& visitor) { diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.idl b/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.idl index 593cd3f32d4..c544b408d16 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.idl +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssembly.idl @@ -7,7 +7,7 @@ dictionary WebAssemblyInstantiatedSource { }; // https://webassembly.github.io/spec/js-api/#webassembly-namespace -[Exposed=*, WithGCVistor] +[Exposed=*, WithGCVisitor] namespace WebAssembly { boolean validate(BufferSource bytes); Promise compile(BufferSource bytes);