Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Oct 24, 2024
1 parent 2affee8 commit 5b9b2e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nbb/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,14 @@
v#)))))

(def sci-sym (delay (sci/eval-form (ctx/get-ctx) 'cljs.core/symbol)))
(def sci-var? (delay (sci/eval-form (ctx/get-ctx) 'cljs.core/var?)))

(defn ^:macro implements?* [_ _ psym x]
(if-let [resolved (sci/resolve (ctx/get-ctx) psym)]
(if-let [resolved (let [res (sci/resolve (ctx/get-ctx) psym)]
(if (@sci-var? res)
res
;; workaround for resolve on `my.ns.Protocol` resolving to protocol map
(:name res)))]
(let [psym (@sci-sym resolved)]
;; hardcoded implementation of implements? for js-interop destructure which
;; uses implements?
Expand Down

0 comments on commit 5b9b2e0

Please sign in to comment.