mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Fix duplicate enum-to-string conversion in generated code
This regressed in e3a9ed0
.
This commit is contained in:
parent
9afcbdf452
commit
f561940e54
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/f561940e54 Pull-request: https://github.com/SerenityOS/serenity/pull/17696
1 changed files with 0 additions and 3 deletions
|
@ -1646,9 +1646,6 @@ static void generate_wrap_statement(SourceGenerator& generator, DeprecatedString
|
|||
@result_expression@ JS::PrimitiveString::create(vm, TRY_OR_THROW_OOM(vm, Bindings::idl_enum_to_string(@value@)));
|
||||
)~~~");
|
||||
}
|
||||
scoped_generator.append(R"~~~(
|
||||
@result_expression@ JS::PrimitiveString::create(vm, Bindings::idl_enum_to_deprecated_string(@value@));
|
||||
)~~~");
|
||||
} else if (interface.callback_functions.contains(type.name())) {
|
||||
// https://webidl.spec.whatwg.org/#es-callback-function
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue