Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index a60b218a37ba1dab589294890e288f8ff1ed6e86..141761d9c967e92ba5389824a55ae11a902dfd5c 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2736,7 +2736,6 @@ ParserBase<Traits>::ParseMemberExpression(bool* ok) { |
template <class Traits> |
typename ParserBase<Traits>::ExpressionT |
ParserBase<Traits>::ParseSuperExpression(bool is_new, bool* ok) { |
- int beg_pos = position(); |
Expect(Token::SUPER, CHECK_OK); |
FunctionState* function_state = function_state_; |
@@ -2760,7 +2759,7 @@ ParserBase<Traits>::ParseSuperExpression(bool is_new, bool* ok) { |
} |
} |
- ReportMessageAt(Scanner::Location(beg_pos, position()), "unexpected_super"); |
+ ReportMessageAt(scanner()->location(), "unexpected_super"); |
*ok = false; |
return this->EmptyExpression(); |
} |