From c83a9925ec3590a62910272b11d69fde5d272338 Mon Sep 17 00:00:00 2001 From: taxor03 Date: Thu, 25 Jul 2024 15:09:07 +0900 Subject: [PATCH] Some minor Fix --- src/main/scala/esmeta/injector/Injector.scala | 1 - src/main/scala/esmeta/interpreter/Interpreter.scala | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/scala/esmeta/injector/Injector.scala b/src/main/scala/esmeta/injector/Injector.scala index 0df325efa8..5f59321d6b 100644 --- a/src/main/scala/esmeta/injector/Injector.scala +++ b/src/main/scala/esmeta/injector/Injector.scala @@ -15,7 +15,6 @@ import esmeta.{LINE_SEP, RESOURCE_DIR} import java.io.PrintWriter import scala.collection.mutable.{Map => MMap} import scala.concurrent.TimeoutException -import scala.annotation.meta.field /** assertion injector */ object Injector: diff --git a/src/main/scala/esmeta/interpreter/Interpreter.scala b/src/main/scala/esmeta/interpreter/Interpreter.scala index 64fc2de7bc..c6ac7f5a6f 100644 --- a/src/main/scala/esmeta/interpreter/Interpreter.scala +++ b/src/main/scala/esmeta/interpreter/Interpreter.scala @@ -178,8 +178,8 @@ class Interpreter( val t = eval(tgtExpr) val v = eval(valExpr).toPureValue (y, t) match - case (y: Enum, Str(t)) => Comp(y, v.toPureValue, Some(t)) - case (y: Enum, ENUM_EMPTY) => Comp(y, v.toPureValue, None) + case (y: Enum, Str(t)) => Comp(y, v, Some(t)) + case (y: Enum, ENUM_EMPTY) => Comp(y, v, None) case (y: Enum, t) => throw InvalidCompTarget(y) case (y, t) => throw InvalidCompType(t) case EIsCompletion(expr) =>