Lithe

Lithe

0 Downloads

nil? is broken on javascript

ylixir opened this issue ยท 1 comments

commented

nil? compiles to a function, so if you try to pass an undefined variable to it, then it will explode

you can safely test if a variable is undefined with the typeof operator, but i can't think of a way to make this a function instead of a macro

  • red: reproduce with a failing test
  • green: fix the bug (macro?)
commented

this is low priority since our main target is lua at the moment