mitra42 / webForth

Forth for the web - implemented in JS and other web technologies
https://www.mitra.biz/forth/console.html
GNU Affero General Public License v3.0
27 stars 1 forks source link

Typing 'hi' at console prompt breaks it - though not at node #45

Closed mitra42 closed 3 years ago

mitra42 commented 3 years ago

Sticks a lot of stuff on stack, and doesnt display prompt .

Noted that hi is COMPILE-ONLY but not clear that interpret() checks that correctly yet, as presumed to be used only during source loading.

mitra42 commented 3 years ago

Issue is much more basic, version works hi fails `: hi !IO version ; COMPILE-ONLY

Problem seems to be something to do with errors - if type any bad string it has the problem

Error handling in $INTERPRET

Solution would be, in EVAL() to wrap call to await this.run(this.Ufetch(EVALoffset)) so it can handle THROW

This would also fix #19 and/or #32

mitra42 commented 3 years ago

Solutions