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

Namespace seemingly not set correctly initially #32

Closed
tomjakubowski opened this issue Oct 22, 2014 · 2 comments
Closed

Namespace seemingly not set correctly initially #32

tomjakubowski opened this issue Oct 22, 2014 · 2 comments

Comments

@tomjakubowski
Copy link
Collaborator

To reproduce:

  1. Start up a REPL and connect it to a browser
  2. Execute (def foo :foo)
  3. Get error
cljs.user=> (def foo :foo)
"Error evaluating:" (def foo :foo) :as ".foo = new cljs.core.Keyword(null,\"foo\",\"foo\",1268894036);\n"
#<SyntaxError: Unexpected token .>
SyntaxError: Unexpected token .
    at file:///home/tom/code/weasel/weasel-example/out/weasel/repl.js:21:744
    at file:///home/tom/code/weasel/weasel-example/out/weasel/repl.js:28:4
    at cljs.core.MultiFn.call.G__6521__2 (file:///home/tom/code/weasel/weasel-example/out/cljs/core.js:21148:18)
    at cljs.core.MultiFn.call.G__6521 [as call] (file:///home/tom/code/weasel/weasel-example/out/cljs/core.js:21293:19)
    at null.<anonymous> (file:///home/tom/code/weasel/weasel-example/out/weasel/repl.js:109:415)
    at goog.events.EventTarget.fireListeners (file:///home/tom/code/weasel/weasel-example/out/goog/events/eventtarget.js:285:23)
    at Function.goog.events.EventTarget.dispatchEventInternal_ (file:///home/tom/code/weasel/weasel-example/out/goog/events/eventtarget.js:382:26)
    at goog.events.EventTarget.dispatchEvent (file:///home/tom/code/weasel/weasel-example/out/goog/events/eventtarget.js:197:34)
    at goog.net.WebSocket.onMessage_ (file:///home/tom/code/weasel/weasel-example/out/goog/net/websocket.js:411:8)
nil
@tomjakubowski
Copy link
Collaborator Author

Seems that in-ns is similarly broken: #33 (comment)

@tomjakubowski
Copy link
Collaborator Author

Fixed in the latest snapshot

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

No branches or pull requests

1 participant