missing-protocol

functionsince v0.0-927Edit
(missing-protocol proto obj)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn missing-protocol [proto obj]
  (let [ty (type obj)
        ty (if (and ty (.-cljs$lang$type ty))
             (.-cljs$lang$ctorStr ty)
             (goog/typeOf obj))]
   (js/Error.
     (.join (array "No protocol method " proto
                   " defined for type " ty ": " obj) ""))))