Skip to content

Commit

Permalink
Hotfix bugs in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnaldo committed Jul 25, 2024
1 parent 0233041 commit 39a5aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/esmeta/compiler/Compiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ class Compiler(
case ErrorObjectLiteral(name) =>
val proto = EStr(Intrinsic(name, List("prototype")).toString)
val (x, xExpr) = fb.newTIdWithExpr
ICall(x, AUX_NEW_ERROR_OBJ, List(proto))
fb.addInst(ICall(x, AUX_NEW_ERROR_OBJ, List(proto)))
xExpr
case _: PositiveInfinityMathValueLiteral => EInfinity(pos = true)
case _: NegativeInfinityMathValueLiteral => EInfinity(pos = false)
Expand Down

0 comments on commit 39a5aaf

Please sign in to comment.