| Index: src/v8utils.cc
|
| diff --git a/src/v8utils.cc b/src/v8utils.cc
|
| index 58ad4e5edd5262b7dba1e67c769250e090ac3af1..8d97f54b81f40765b900310da4c120116846397f 100644
|
| --- a/src/v8utils.cc
|
| +++ b/src/v8utils.cc
|
| @@ -264,7 +264,7 @@ void StringBuilder::AddFormatted(const char* format, ...) {
|
|
|
|
|
| void StringBuilder::AddFormattedList(const char* format, va_list list) {
|
| - ASSERT(!is_finalized() && position_ < buffer_.length());
|
| + ASSERT(!is_finalized() && position_ <= buffer_.length());
|
| int n = OS::VSNPrintF(buffer_ + position_, format, list);
|
| if (n < 0 || n >= (buffer_.length() - position_)) {
|
| position_ = buffer_.length();
|
|
|