mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb: Return undefined from generated EventHandler setters
Returning an empty value without throwing an exception is no longer valid.
This commit is contained in:
parent
5a5f6d11ef
commit
8dcf4e0346
Notes:
sideshowbarker
2024-07-18 03:27:22 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/8dcf4e03466 Pull-request: https://github.com/SerenityOS/serenity/pull/10211 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -744,7 +744,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter
|
|||
} else if (@js_name@@js_suffix@.is_string()) {
|
||||
@cpp_name@.string = @js_name@@js_suffix@.as_string().string();
|
||||
} else {
|
||||
@return_statement@
|
||||
return JS::js_undefined();
|
||||
}
|
||||
)~~~");
|
||||
} else if (parameter.type.name == "any") {
|
||||
|
|
Loading…
Add table
Reference in a new issue