-
-
Save yedi/9562cebf6bc6e74d0a1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns chatter.app | |
(:require [cljs-websockets-async.core :as ws] | |
[cljs.core.async :as async :refer [<! >!]] | |
[clojure.browser.repl :as repl]) | |
(:require-macros [cljs.core.async.macros :refer [go]])) | |
(name :keyword) ; when i comment out this line, the app doesn't crash | |
;; output ========= | |
Uncaught Error: Doesn't support name: [object Object] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cljs.core.name = function name(x) { | |
if(function() { | |
var G__4498 = x; | |
if(G__4498) { | |
if(function() { | |
var or__3943__auto__ = G__4498.cljs$lang$protocol_mask$partition1$ & 4096; | |
if(or__3943__auto__) { | |
return or__3943__auto__ | |
}else { | |
return G__4498.cljs$core$INamed$ | |
} | |
}()) { | |
return true | |
}else { | |
return false | |
} | |
}else { | |
return false | |
} | |
}()) { | |
return cljs.core._name.call(null, x) | |
}else { | |
if(cljs.core.string_QMARK_.call(null, x)) { | |
return x | |
}else { | |
if(cljs.core.keyword_QMARK_.call(null, x)) { | |
var i = x.lastIndexOf("/", x.length - 2); | |
if(i < 0) { | |
return cljs.core.subs.call(null, x, 2) | |
}else { | |
return cljs.core.subs.call(null, x, i + 1) | |
} | |
}else { | |
if("\ufdd0:else") { | |
throw new Error([cljs.core.str("Doesn't support name: "), cljs.core.str(x)].join("")); ;; <== error thrown here | |
}else { | |
return null | |
} | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment