Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError on undefined returns #14

Closed
kiranshila opened this issue Aug 6, 2020 · 1 comment
Closed

ReferenceError on undefined returns #14

kiranshila opened this issue Aug 6, 2020 · 1 comment

Comments

@kiranshila
Copy link
Contributor

kiranshila commented Aug 6, 2020

Many of the Espruino commands that are side-effecting return undefined. I believe in CLJS this should return nil. However, in the Esprit REPL, it throws a reference error.

cljs.user=> js/undefined
ReferenceError: "0" is not defined
 at line 13 col 7
throw e__6755__auto__;
      ^
in function called from line 14 col 5
}})()
   ^
at line 1 col 89
...tus:"success",value:eval(d)}}catch(f){var a=f;return{status:...
@kiranshila
Copy link
Contributor Author

This is the same problem as #3 but is the case for js/undefined in general, not just write calls.

kiranshila added a commit to kiranshila/esprit that referenced this issue Aug 17, 2020
@mfikes mfikes closed this as completed in 3bb8893 Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant