replete-repl / replete-ios

ClojureScript REPL iOS app
Eclipse Public License 1.0
395 stars 25 forks source link

Inaccurate error message #29

Closed novemberkilo closed 8 years ago

novemberkilo commented 9 years ago

Admittedly a syntax error but the error message appears to be incorrect?

  (seq (1 2))

  At least one digit must occur after a decimal point
  eval@[native code]
  file:///replete/core.js:95:59
  replete$core$read_eval_print@file:///replete/core.js:106:3
karlmikko commented 9 years ago

the error occurs when evaling (1 2) before it gets to the seq

mfikes commented 9 years ago

This misleading error message is because the following JavaScript is emitted for (1 2): 1.call(null,2)

If #46 is addressed, then this would emit (1).call(null,(2)), which produces an error that looks like

TypeError: undefined is not a function (evaluating '(1).call(null,(2))')
mfikes commented 8 years ago

Now (seq (1 2)) causes:

(1).call is not a function. (In '(1).call(null,(2))', '(1).call' is undefined

Closing as good enough now.