Closed mfikes closed 9 years ago
For reference here is the same sequence in the Node REPL, which does not exhibit the problem:
Mike-Fikess-MacBook-Pro:clojurescript mfikes$ ./script/noderepljs
To quit, type: :cljs/quit
ClojureScript Node.js REPL server listening on 55665
ClojureScript:cljs.user> (def foo (atom nil))
#<Atom: nil>
ClojureScript:cljs.user> (.-name @foo))
TypeError: Cannot read property 'name' of null
at repl:1:109
at repl:13:4
at [stdin]:41:34
at b (domain.js:183:18)
at Domain.run (domain.js:123:23)
at Socket.<anonymous> ([stdin]:40:25)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:765:14)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:427:10)
ClojureScript:cljs.user>
No longer occurs on when Ambly is using ClojureScript master:
ClojureScript:cljs.user> (def foo (atom nil))
#<Atom: nil>
ClojureScript:cljs.user> (.-name @foo)
TypeError: null is not an object (evaluating 'cljs.core.deref.call(null,cljs.user.foo).name')
global code (NO_SOURCE_FILE)
ClojureScript:cljs.user>
In Ambly Demo:
After this REPL is inoperative