mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
CodeGenerators: Ensure that we always print the entire generated output
This commit is contained in:
committed by
Linus Groh
parent
e007279315
commit
8032724574
@@ -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 {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user