mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-10 21:22:53 +00:00
CodeGenerators: Ensure that we always print the entire generated output
This commit is contained in:
parent
e007279315
commit
8032724574
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/timschumi
Commit: 8032724574
Pull-request: https://github.com/SerenityOS/serenity/pull/17684
Reviewed-by: https://github.com/JanDeVisser ✅
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
17 changed files with 37 additions and 74 deletions
|
@ -96,8 +96,7 @@ TransformFunctionMetadata transform_function_metadata(TransformFunction);
|
|||
|
||||
generator.appendln("\n}");
|
||||
|
||||
// FIXME: This should write the entire span.
|
||||
TRY(file.write_some(generator.as_string_view().bytes()));
|
||||
TRY(file.write_until_depleted(generator.as_string_view().bytes()));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -206,7 +205,6 @@ TransformFunctionMetadata transform_function_metadata(TransformFunction transfor
|
|||
|
||||
generator.appendln("\n}");
|
||||
|
||||
// FIXME: This should write the entire span.
|
||||
TRY(file.write_some(generator.as_string_view().bytes()));
|
||||
TRY(file.write_until_depleted(generator.as_string_view().bytes()));
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue