File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -10852,7 +10852,9 @@ reduces them without incurring seq initialization"
10852
10852
; may throw ReferenceError.
10853
10853
(find-ns-obj*
10854
10854
(try
10855
- (js/eval (first segs))
10855
+ (let [ctxt (js/eval (first segs))]
10856
+ (when (and ctxt (object? ctxt))
10857
+ ctxt))
10856
10858
(catch js/ReferenceError e
10857
10859
nil ))
10858
10860
(next segs))
Original file line number Diff line number Diff line change 877
877
(is (nil? error))
878
878
(inc! l))))))
879
879
880
+ (deftest test-cljs-2024
881
+ (async done
882
+ (let [st (cljs/empty-state )
883
+ l (latch 1 done)]
884
+ (cljs/eval-str
885
+ st
886
+ " (find-ns-obj 'a.x)"
887
+ nil
888
+ {:context :expr
889
+ :eval node-eval}
890
+ (fn [{:keys [error] :as m}]
891
+ (is (nil? error))
892
+ (inc! l))))))
893
+
880
894
(defn -main [& args]
881
895
(run-tests ))
882
896
You can’t perform that action at this time.
0 commit comments