dyoo / whalesong

Whalesong: Racket to JavaScript compiler
http://hashcollision.org/whalesong
250 stars 30 forks source link

soundness bug at repl #97

Closed dyoo closed 11 years ago

dyoo commented 11 years ago

At the toplevel, the environment is getting screwed up.


> (define v (+ 1 2 3))
1,traced-app-key1,traced-callee-key2,0,[object Object],[object Object]

> (define v (+ 1 1))
#<undefined>

I need to figure out where this is happening. I think installvalue is not responding correctly to the linkage that's supposed to save values to the stack. I should review the way linkage works and make sure the compiler is doing the right thing for each situation.

dyoo commented 11 years ago

corrected by 9271b7d