JohnEarnest / ok

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

JS error when trying to assign result of \t #25

Closed refi64 closed 9 years ago

refi64 commented 9 years ago
  a:\t
Cannot read property 'sticky' of null

I didn't expect this to work, though...

BTW, I seem to have this knack for getting JS errors from doing weird stuff. :)

JohnEarnest commented 9 years ago

The actual cause of the problem was using an assignment operator with no right expression. You could produce the same problem with simply

a:

The sequence \t is a repl command only and cannot be used as part of an expression.

refi64 commented 9 years ago

@JohnEarnest Well, I figured that much out when I tried to print \t. :)