| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 55685a124a249f6cbf8546823ec3070e3818591b..271b218186b424833a703c6987122d30dc0b77e0 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -1016,12 +1016,6 @@ ParserBase<Traits>::FunctionState::~FunctionState() {
|
|
|
| template<class Traits>
|
| void ParserBase<Traits>::ReportUnexpectedToken(Token::Value token) {
|
| - // We don't report stack overflows here, to avoid increasing the
|
| - // stack depth even further. Instead we report it after parsing is
|
| - // over, in ParseProgram.
|
| - if (token == Token::ILLEGAL && stack_overflow()) {
|
| - return;
|
| - }
|
| Scanner::Location source_location = scanner()->location();
|
|
|
| // Four of the tokens are treated specially
|
|
|