Skip to content

Commit 56848c7

Browse files
jeluardswannodette
authored andcommitted
Fix misleading error message.
1 parent e9874ba commit 56848c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cljs/cljs/core.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7364,7 +7364,7 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
73647364
(-dispatch [mf args]))
73657365

73667366
(defn- do-dispatch
7367-
[mf dispatch-fn args]
7367+
[mf name dispatch-fn args]
73687368
(let [dispatch-val (apply dispatch-fn args)
73697369
target-fn (-get-method mf dispatch-val)]
73707370
(when-not target-fn
@@ -7415,7 +7415,7 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
74157415
(-methods [mf] @method-table)
74167416
(-prefers [mf] @prefer-table)
74177417

7418-
(-dispatch [mf args] (do-dispatch mf dispatch-fn args))
7418+
(-dispatch [mf args] (do-dispatch mf name dispatch-fn args))
74197419

74207420
IHash
74217421
(-hash [this] (goog/getUid this)))

0 commit comments

Comments
 (0)