Index: src/asmjs/asm-scanner.cc |
diff --git a/src/asmjs/asm-scanner.cc b/src/asmjs/asm-scanner.cc |
index 571930f4815537b7c4e054f6181c90d7184280fd..949b44a65f7bb773cdd190ed5240855aaa139ffe 100644 |
--- a/src/asmjs/asm-scanner.cc |
+++ b/src/asmjs/asm-scanner.cc |
@@ -145,14 +145,12 @@ |
} |
void AsmJsScanner::Rewind() { |
- // TODO(bradnelson): Currently rewinding needs to leave in place the |
- // preceding newline state (in case a |0 ends a line). |
- // This is weird and stateful, fix me. |
DCHECK(!rewind_); |
next_token_ = token_; |
token_ = preceding_token_; |
preceding_token_ = kUninitialized; |
rewind_ = true; |
+ preceded_by_newline_ = false; |
identifier_string_.clear(); |
} |