Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

WARNING: cljs.core/bit-or, all arguments must be numbers #341

Closed
arichiardi opened this issue Jan 16, 2018 · 2 comments
Closed

WARNING: cljs.core/bit-or, all arguments must be numbers #341

arichiardi opened this issue Jan 16, 2018 · 2 comments
Labels

Comments

@arichiardi
Copy link
Collaborator

arichiardi commented Jan 16, 2018

I have noticed that we have a spurious warning when doing this at the REPL:

cljs.user=> (int \uD7ff)
            ⬆
WARNING: cljs.core/bit-or, all arguments must be numbers, got [string number] instead. at line 1 
0

It does not happen in vanilla ClojureScript:

$ ./script/repljs 
To quit, type: :cljs/quit
cljs.user=> *clojurescript-version*
"1.9.1008"
cljs.user=> (int \uD7ff)
0

I will try to dig more, any hint is more than welcome!

@arichiardi
Copy link
Collaborator Author

arichiardi commented Jan 16, 2018

This happens because the line in target/cljs/tools/reader/edn.js that triggers the warning is compiled as:

cljs.tools.reader.edn.upper_limit = ("\uD7FF" | (0));

Digging digging...

@mfikes
Copy link
Collaborator

mfikes commented Jan 17, 2018

Being sorted upstream in https://dev.clojure.org/jira/browse/TRDR-50.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants