Chromium Code Reviews| Index: src/parsing/scanner.h |
| diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h |
| index 610091c52ec51fe52af9241dba844359a429585b..1a6473f8b0455399129d883debcc244ace49127e 100644 |
| --- a/src/parsing/scanner.h |
| +++ b/src/parsing/scanner.h |
| @@ -162,7 +162,8 @@ class LiteralBuffer { |
| INLINE(void AddChar(char code_unit)) { |
| if (position_ >= backing_store_.length()) ExpandBuffer(); |
| DCHECK(is_one_byte_); |
| - DCHECK(0 <= code_unit && code_unit <= kMaxAscii); |
| + // DCHECK((0 < code_unit && code_unit <= kMaxAscii) || code_unit == 0); |
|
rmcilroy
2016/07/08 11:15:06
Remove comment?
oth
2016/07/10 15:34:16
Done.
|
| + DCHECK(iscntrl(code_unit) || isprint(code_unit)); |
| backing_store_[position_] = static_cast<byte>(code_unit); |
| position_ += kOneByteSize; |
| return; |