Chromium Code Reviews| Index: src/parser.cc |
| diff --git a/src/parser.cc b/src/parser.cc |
| index 89b934c2f85466b9a907804c9534e24a9c950680..3a81127b482b4fc3ba3f33c9e87396fa71d1e425 100644 |
| --- a/src/parser.cc |
| +++ b/src/parser.cc |
| @@ -4118,7 +4118,6 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name, |
| bool has_seen_constructor = false; |
| Expect(Token::LBRACE, CHECK_OK); |
| - int body_beg_pos = scanner()->location().beg_pos; |
| const bool has_extends = extends != nullptr; |
| while (peek() != Token::RBRACE) { |
| @@ -4159,7 +4158,7 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name, |
| if (name != NULL) { |
| DCHECK_NOT_NULL(proxy); |
| DCHECK_NOT_NULL(block_scope); |
| - proxy->var()->set_initializer_position(body_beg_pos); |
| + proxy->var()->set_initializer_position(end_pos); |
|
arv (Not doing code reviews)
2015/02/26 16:38:13
Marja, this was changed in https://github.com/v8/v
|
| } |
| return factory()->NewClassLiteral(name, block_scope, proxy, extends, |