Chromium Code Reviews| Index: src/scanner.cc |
| diff --git a/src/scanner.cc b/src/scanner.cc |
| index ea8586ed263b7b8da4fffc6a7287c8282859be61..de1b8e8b7202d211b297e8ca5737fb8f411299ed 100644 |
| --- a/src/scanner.cc |
| +++ b/src/scanner.cc |
| @@ -843,7 +843,7 @@ Token::Value Scanner::ScanTemplateSpan() { |
| ReduceRawLiteralLength(2); |
| break; |
| } else if (c == '\\') { |
| - if (unicode_cache_->IsLineTerminator(c0_)) { |
| + if (c0_ > 0 && unicode_cache_->IsLineTerminator(c0_)) { |
|
arv (Not doing code reviews)
2015/02/04 20:10:49
This seems fine.
One thing we can do is to add a
|
| // The TV of LineContinuation :: \ LineTerminatorSequence is the empty |
| // code unit sequence. |
| uc32 lastChar = c0_; |