From 85793cf989b56a62ffdc640abdaf8840efd61c57 Mon Sep 17 00:00:00 2001 From: d01c2 Date: Fri, 12 Jan 2024 10:33:48 +0900 Subject: [PATCH] Fixed propRef of parser for test262 --- src/main/scala/esmeta/lang/util/Parser.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(_, _))