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:
parent
d86458b1bc
commit
604445b55b
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user