LibWeb: Fix typo in extended WithGCVisitor extended attribute name

This commit is contained in:
Tim Ledbetter 2024-04-21 08:29:38 +01:00 committed by Ali Mohammad Pur
commit 5e75afd549
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -3697,7 +3697,7 @@ public:
private: private:
)~~~"); )~~~");
if (interface.extended_attributes.contains("WithGCVistor"sv)) { if (interface.extended_attributes.contains("WithGCVisitor"sv)) {
generator.append(R"~~~( generator.append(R"~~~(
virtual void visit_edges(JS::Cell::Visitor&) override; 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"~~~( generator.append(R"~~~(
void @namespace_class@::visit_edges(JS::Cell::Visitor& visitor) void @namespace_class@::visit_edges(JS::Cell::Visitor& visitor)
{ {

View file

@ -7,7 +7,7 @@ dictionary WebAssemblyInstantiatedSource {
}; };
// https://webassembly.github.io/spec/js-api/#webassembly-namespace // https://webassembly.github.io/spec/js-api/#webassembly-namespace
[Exposed=*, WithGCVistor] [Exposed=*, WithGCVisitor]
namespace WebAssembly { namespace WebAssembly {
boolean validate(BufferSource bytes); boolean validate(BufferSource bytes);
Promise<Module> compile(BufferSource bytes); Promise<Module> compile(BufferSource bytes);