Skip to content

Commit

Permalink
minor type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taxor03 authored and jhnaldo committed Jul 25, 2024
1 parent c83a992 commit 67e4360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/esmeta/interpreter/Interpreter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class Interpreter(
case comp: Comp =>
if (check) throw ReturnValue(value, ria)
else throw UncheckedAbrupt(comp)
case pure: Value => pure // XXX remove?
case pure: PureValue => pure // XXX remove?

/** transition for references */
def eval(ref: Ref): RefTarget = ref match
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/esmeta/state/Value.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ case class Comp(
object NormalComp {
def apply(value: Value): Comp =
Comp(ENUM_NORMAL, value.toPureValue, None)
def unapply(comp: Comp): Option[Value] = comp match {
def unapply(comp: Comp): Option[PureValue] = comp match {
case Comp(ENUM_NORMAL, value, None) => Some(value)
case _ => None
}
Expand Down

0 comments on commit 67e4360

Please sign in to comment.