File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 618618 " defs name to have the root value of init iff the named var has no root value,
619619 else init is unevaluated"
620620 [x init]
621- `(when-not (exists? ~x)
622- (def ~x ~init )))
621+ (core/let [qualified (if (namespace x)
622+ x
623+ (symbol (core/str (core/-> &env :ns :name )) (name x)))]
624+ `(when-not (exists? ~qualified)
625+ (def ~x ~init ))))
623626
624627(core/defn destructure [bindings]
625628 (core/let [bents (partition 2 bindings)
Original file line number Diff line number Diff line change 18741874 (for [e s :when (and (sequential? e) (every? (fn [x] x) e))]
18751875 e))
18761876 [[]]))))
1877+
1878+ (deftest test-cljs-3333
1879+ (defonce not-native 17 ) ; ; Intentionally matching a core name
1880+ (is (== 17 not-native)))
You can’t perform that action at this time.
0 commit comments