mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
5a5f6d11ef
commit
8dcf4e0346
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user