[parser] Drop explicit shorthand property LET detection

It's automatically detected in VariableDeclarationParsingScope::Declare.

Change-Id: I2cf406ebd2dcd66eefb3d709289e0a8d162d0251
Reviewed-on: https://chromium-review.googlesource.com/c/1463783
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59512}
This commit is contained in:
Toon Verwaest 2019-02-11 17:46:02 +01:00 committed by Commit Bot
parent 93b3c7e0be
commit 7991362a67
2 changed files with 0 additions and 9 deletions

View File

@ -163,11 +163,6 @@ class ExpressionScope {
AsExpressionParsingScope()->RecordExpressionError(loc, message);
}
void RecordLexicalDeclarationError(const Scanner::Location& loc,
MessageTemplate message) {
if (IsLexicalDeclaration()) Report(loc, message);
}
void RecordNonSimpleParameter() {
if (!IsArrowHeadParsingScope()) return;
AsArrowHeadParsingScope()->RecordNonSimpleParameter();

View File

@ -2333,10 +2333,6 @@ ParserBase<Impl>::ParseObjectPropertyDefinition(ParsePropertyInfo* prop_info,
DCHECK(!prop_info->is_computed_name);
if (name_token == Token::LET) {
expression_scope()->RecordLexicalDeclarationError(
scanner()->location(), MessageTemplate::kLetInLexicalBinding);
}
if (name_token == Token::AWAIT) {
DCHECK(!is_async_function());
expression_scope()->RecordAsyncArrowParametersError(