Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 5be009d66a39c5227795067b53e183cf3dd268aa..29a2b55e83e89719ee6472c35f9826765adb5be6 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2194,7 +2194,7 @@ ParserBase<Traits>::ParsePropertyDefinition(ObjectLiteralCheckerBase* checker, |
typename Traits::Type::FunctionLiteral value = this->ParseFunctionLiteral( |
name, scanner()->location(), |
false, // reserved words are allowed here |
- FunctionKind::kNormalFunction, RelocInfo::kNoPosition, |
+ FunctionKind::kAccessorFunction, RelocInfo::kNoPosition, |
FunctionLiteral::ANONYMOUS_EXPRESSION, |
is_get ? FunctionLiteral::GETTER_ARITY : FunctionLiteral::SETTER_ARITY, |
CHECK_OK_CUSTOM(EmptyObjectLiteralProperty)); |