Returns assignment value in REPL.
@@ -146,7 +146,7 @@ func (g *Generator) compileAssignExpression(is *InstructionSet, exp *ast.AssignE
is.define(SetConstant, name.Value)
}
- if exp.IsStmt {
+ if exp.IsStmt && !g.REPL {
is.define(Pop)
}
}
