diff --git a/src/main/scala/esmeta/lang/util/Parser.scala b/src/main/scala/esmeta/lang/util/Parser.scala index de15844c0f..e2ac8b761b 100644 --- a/src/main/scala/esmeta/lang/util/Parser.scala +++ b/src/main/scala/esmeta/lang/util/Parser.scala @@ -1072,7 +1072,9 @@ trait Parsers extends IndentParsers { }.named("lang.Reference") // property references - lazy val propRef: PL[PropertyReference] = opt("the value of") ~> { + lazy val propRef: PL[PropertyReference] = opt( + "the" ~ opt("String") ~ "value" ~ opt("of"), + ) ~> { baseRef ~ prop ~ rep(prop) ^^ { case base ~ p ~ ps => ps.foldLeft(PropertyReference(base, p))(PropertyReference(_, _))