Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 35eea77fdf72b0fe90d5087ccfb3212c08f089ca..a5d09eff0a24d58e448a684c867d7cb406a21f70 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -574,7 +574,7 @@ void JSDate::JSDatePrint(std::ostream& os) { // NOLINT |
os << " - time = NaN\n"; |
} else { |
// TODO(svenpanne) Add some basic formatting to our streams. |
- Vector<char> buf = Vector<char>::New(100); |
+ ScopedVector<char> buf(100); |
SNPrintF( |
buf, " - time = %s %04d/%02d/%02d %02d:%02d:%02d\n", |
weekdays[weekday()->IsSmi() ? Smi::cast(weekday())->value() + 1 : 0], |