Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index 6bee72b14164154d6b723fb2a368c1552680c2ad..c51cdce51ae1e1dd69e9b98420ffefacb3316753 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -1735,8 +1735,6 @@ ParserBase<Traits>::ParsePropertyDefinition( |
: FunctionKind::kBaseConstructor; |
} |
- if (!in_class) kind = WithObjectLiteralBit(kind); |
- |
value = this->ParseFunctionLiteral( |
*name, scanner()->location(), kSkipFunctionNameCheck, kind, |
RelocInfo::kNoPosition, FunctionLiteral::kAnonymousExpression, |
@@ -1778,11 +1776,10 @@ ParserBase<Traits>::ParsePropertyDefinition( |
CHECK_OK_CUSTOM(EmptyObjectLiteralProperty)); |
} |
- FunctionKind kind = FunctionKind::kAccessorFunction; |
- if (!in_class) kind = WithObjectLiteralBit(kind); |
typename Traits::Type::FunctionLiteral value = this->ParseFunctionLiteral( |
- *name, scanner()->location(), kSkipFunctionNameCheck, kind, |
- RelocInfo::kNoPosition, FunctionLiteral::kAnonymousExpression, |
+ *name, scanner()->location(), kSkipFunctionNameCheck, |
+ FunctionKind::kAccessorFunction, RelocInfo::kNoPosition, |
+ FunctionLiteral::kAnonymousExpression, |
is_get ? FunctionLiteral::kGetterArity : FunctionLiteral::kSetterArity, |
language_mode(), CHECK_OK_CUSTOM(EmptyObjectLiteralProperty)); |