Reviewers: dcarney, ulan,
Message:
Committed patchset #1 manually as r18189 (presubmit successful).
Description:
Experimental scanner: fix starting positions of tokens.
This fixes the mjsunit/strict-mode-eval.js failure. The problem is that the
parser apparently asks for the current token begin before scanning
anything. Or
something along those lines.
[email protected],[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=18189
Please review this at https://codereview.chromium.org/98973003/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+1, -0 lines):
M src/lexer/experimental-scanner.h
Index: src/lexer/experimental-scanner.h
diff --git a/src/lexer/experimental-scanner.h
b/src/lexer/experimental-scanner.h
index
b85aa770befa19715e420f7d4ef9dfa44b9e1abe..a049e9f8703f0d2d1c05a9e452cdcf45cbe8cefd
100644
--- a/src/lexer/experimental-scanner.h
+++ b/src/lexer/experimental-scanner.h
@@ -302,6 +302,7 @@ class ExperimentalScanner : public ScannerBase {
last_octal_end_(NULL) {
ASSERT(source->IsFlat());
SetBufferBasedOnHandle();
+ current_.beg_pos = current_.end_pos = next_.beg_pos = next_.end_pos =
0;
}
virtual void Init() {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.