mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
CodeGenerators: Ensure that we always print the entire generated output
This commit is contained in:
committed by
Linus Groh
parent
e007279315
commit
8032724574
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/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 ✅
@@ -80,8 +80,7 @@ bool media_feature_accepts_identifier(MediaFeatureID, ValueID);
|
||||
}
|
||||
)~~~");
|
||||
|
||||
// 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 {};
|
||||
}
|
||||
|
||||
@@ -291,7 +290,6 @@ bool media_feature_accepts_identifier(MediaFeatureID media_feature_id, ValueID i
|
||||
}
|
||||
)~~~");
|
||||
|
||||
// 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