| Index: src/dateparser-inl.h
|
| diff --git a/src/dateparser-inl.h b/src/dateparser-inl.h
|
| index c16812b55ac5ca317aca6d83706db85d8a5a58be..f7360f8c0231cc168a1c6cd64f3f1f355e9d97aa 100644
|
| --- a/src/dateparser-inl.h
|
| +++ b/src/dateparser-inl.h
|
| @@ -14,7 +14,7 @@ template <typename Char>
|
| bool DateParser::Parse(Vector<Char> str,
|
| FixedArray* out,
|
| UnicodeCache* unicode_cache) {
|
| - ASSERT(out->length() >= OUTPUT_SIZE);
|
| + DCHECK(out->length() >= OUTPUT_SIZE);
|
| InputReader<Char> in(unicode_cache, str);
|
| DateStringTokenizer<Char> scanner(&in);
|
| TimeZoneComposer tz;
|
| @@ -175,7 +175,7 @@ DateParser::DateToken DateParser::DateStringTokenizer<CharType>::Scan() {
|
| if (in_->Skip('.')) return DateToken::Symbol('.');
|
| if (in_->Skip(')')) return DateToken::Symbol(')');
|
| if (in_->IsAsciiAlphaOrAbove()) {
|
| - ASSERT(KeywordTable::kPrefixLength == 3);
|
| + DCHECK(KeywordTable::kPrefixLength == 3);
|
| uint32_t buffer[3] = {0, 0, 0};
|
| int length = in_->ReadWord(buffer, 3);
|
| int index = KeywordTable::Lookup(buffer, length);
|
| @@ -200,9 +200,9 @@ DateParser::DateToken DateParser::ParseES5DateTime(
|
| DayComposer* day,
|
| TimeComposer* time,
|
| TimeZoneComposer* tz) {
|
| - ASSERT(day->IsEmpty());
|
| - ASSERT(time->IsEmpty());
|
| - ASSERT(tz->IsEmpty());
|
| + DCHECK(day->IsEmpty());
|
| + DCHECK(time->IsEmpty());
|
| + DCHECK(tz->IsEmpty());
|
|
|
| // Parse mandatory date string: [('-'|'+')yy]yyyy[':'MM[':'DD]]
|
| if (scanner->Peek().IsAsciiSign()) {
|
|
|