| 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);
|
| }
|
|
|
| return factory()->NewClassLiteral(name, block_scope, proxy, extends,
|
|
|