mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +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: 8dcf4e0346
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()) {
|
} else if (@js_name@@js_suffix@.is_string()) {
|
||||||
@cpp_name@.string = @js_name@@js_suffix@.as_string().string();
|
@cpp_name@.string = @js_name@@js_suffix@.as_string().string();
|
||||||
} else {
|
} else {
|
||||||
@return_statement@
|
return JS::js_undefined();
|
||||||
}
|
}
|
||||||
)~~~");
|
)~~~");
|
||||||
} else if (parameter.type.name == "any") {
|
} else if (parameter.type.name == "any") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue