JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
587 stars 72 forks source link

JS error when printing a function #19

Closed refi64 closed 9 years ago

refi64 commented 9 years ago
`0:{x}

gives:

Converting circular structure to JSON
JohnEarnest commented 9 years ago

The real K5 doesn't support printing functions:

  `0:{x}
ERROR: length
`0:{x}
 ^

Kona and K2 don't support printing functions:

  `0:{x}
type error
`0:{x}
 ^

I don't think there's any reasonable expectation of that operation working.

refi64 commented 9 years ago

I didn't necessarily expect it to work. I just expected oK to give an error, not JavaScript. :)