Parser: reuse has_extends, instead of doing a check again

Review-Url: https://codereview.chromium.org/2053393004
Cr-Commit-Position: refs/heads/master@{#36905}
This commit is contained in:
gsathya 2016-06-10 18:20:25 -07:00 committed by Commit bot
parent d86458b1bc
commit 604445b55b

View File

@ -4972,7 +4972,7 @@ ClassLiteral* Parser::ParseClassLiteral(ExpressionClassifier* classifier,
int end_pos = scanner()->location().end_pos;
if (constructor == NULL) {
constructor = DefaultConstructor(name, extends != NULL, block_scope, pos,
constructor = DefaultConstructor(name, has_extends, block_scope, pos,
end_pos, block_scope->language_mode());
}