slag-plt / scamper

A mini-Scheme implementation designed for teaching, targeting the web
0 stars 0 forks source link

Traces throw errors when printing values without s-expression representation #30

Closed psosera closed 9 months ago

psosera commented 10 months ago
(import image)

(display (circle 50 "solid" "black"))

Output:

Importing module image...
Module image imported
Evaluating displayed expression...
(circle 50 "solid" "black")
ICE (sem.valueToExp): Unknown value type encountered: [object Object]
Error: Unknown value type encountered: [object Object]
    at valueToExp (http://localhost:8000/dist/ide.js:24986:15)
    at http://localhost:8000/dist/ide.js:24990:37
    at Array.map (<anonymous>)
    at dumpToExp (http://localhost:8000/dist/ide.js:24990:26)
    at stateToExp (http://localhost:8000/dist/ide.js:25062:15)
    at Sem.step (http://localhost:8000/dist/ide.js:25493:67)
    at Sem.execute (http://localhost:8000/dist/ide.js:25529:18)
    at Scamper.runProgram (http://localhost:8000/dist/ide.js:27107:29)
    at HTMLButtonElement.<anonymous> (http://localhost:8000/dist/ide.js:29038:68)