Index: runtime/vm/report.cc |
diff --git a/runtime/vm/report.cc b/runtime/vm/report.cc |
index 21bbdc812b284305ba41f6c1a88087afa4d9bdaf..01b7a86822f0e7a308522dd8441ab59535944d55 100644 |
--- a/runtime/vm/report.cc |
+++ b/runtime/vm/report.cc |
@@ -118,7 +118,7 @@ void Report::LongJumpV(const Error& prev_error, |
const char* format, va_list args) { |
const Error& error = Error::Handle(LanguageError::NewFormattedV( |
prev_error, script, token_pos, Report::AtLocation, |
- kError, Heap::kNew, |
+ kError, Heap::kOld, |
format, args)); |
LongJump(error); |
UNREACHABLE(); |
@@ -159,7 +159,7 @@ void Report::MessageV(Kind kind, |
const Error& error = Error::Handle( |
LanguageError::NewFormattedV(Error::Handle(), // No previous error. |
script, token_pos, report_after_token, |
- kind, Heap::kNew, |
+ kind, Heap::kOld, |
format, args)); |
LongJump(error); |
UNREACHABLE(); |