diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-11 18:27:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-12 14:16:42 +0100 |
commit | 6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (patch) | |
tree | 327b04fb4820758e4d8cc60d30bd849d7b3511eb /Tests/LibJS/test-test262.cpp | |
parent | ed4c2f2f8ea59295edceca77bf308df5de6872d6 (diff) | |
download | serenity-6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3.zip |
LibCore: Rename `Stream::*_or_error` to `*_entire_buffer`
All of our functions are `_or_error` (or are about to be), and maybe
making it less reminiscient of AK::Stream will make people use it more.
Diffstat (limited to 'Tests/LibJS/test-test262.cpp')
-rw-r--r-- | Tests/LibJS/test-test262.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibJS/test-test262.cpp b/Tests/LibJS/test-test262.cpp index 02fdf44733..46651647dd 100644 --- a/Tests/LibJS/test-test262.cpp +++ b/Tests/LibJS/test-test262.cpp @@ -161,7 +161,7 @@ public: } for (DeprecatedString const& line : lines) { - if (!m_output->write_or_error(DeprecatedString::formatted("{}\n", line).bytes())) + if (!m_output->write_entire_buffer(DeprecatedString::formatted("{}\n", line).bytes())) break; } @@ -427,7 +427,7 @@ void write_per_file(HashMap<size_t, TestResult> const& result_map, Vector<Deprec complete_results.set("duration", time_taken_in_ms / 1000.); complete_results.set("results", result_object); - if (!file->write_or_error(complete_results.to_deprecated_string().bytes())) + if (!file->write_entire_buffer(complete_results.to_deprecated_string().bytes())) warnln("Failed to write per-file"); file->close(); } |