summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc')
-rw-r--r--deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc b/deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc
index ba342d8960..5f3ac98190 100644
--- a/deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc
+++ b/deps/v8/test/cctest/interpreter/generate-bytecode-expectations.cc
@@ -467,7 +467,7 @@ bool WriteExpectationsFile(const std::vector<std::string>& snippet_list,
const std::string& output_filename) {
std::ofstream output_file_handle;
if (!options.write_to_stdout()) {
- output_file_handle.open(output_filename.c_str());
+ output_file_handle.open(output_filename.c_str(), std::ios::binary);
if (!output_file_handle.is_open()) {
REPORT_ERROR("Could not open " << output_filename << " for writing.");
return false;