cs: fix $value handling in fallback interpreter

Closes #2951
This commit is contained in:
Matthew Flatt 2019-12-04 07:06:50 -07:00
parent 1c74f8c956
commit 4a36512570

View File

@ -622,8 +622,10 @@
(apply values new-stack vals))
(loop (fx+ i 1) new-stack)))))]
[#($value ,e)
(let ([v (interpret e stack)])
v)]
(let-values ([(new-stack v) (interpret e stack #f)])
(if tail?
v
(values new-stack v)))]
[#(clear ,clears ,e)
(let loop ([clears clears] [stack stack])
(cond