File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 71
71
[sym (if (and call? #?(:clj (not (str/starts-with? sym-name-str " ." ))))
72
72
(with-meta
73
73
[clazz #?(:clj sym-name
74
- :cljs (.split (str sym-name) " ." ))
74
+ :cljs (.split (utils/munge- str ( str sym-name) ) " ." ))
75
75
sym-ns]
76
76
#?(:clj
77
77
(if (= " new" sym-name-str)
Original file line number Diff line number Diff line change 399
399
(is (= 1 (sci/eval-string " (def x #js {:foo_bar (fn [] 1)}) (.foo-bar x)" {:classes {:allow :all }})))
400
400
(testing " reserved keyword munging is bypassed"
401
401
(is (= 1 (sci/eval-string " (def x #js {:catch (fn [] 1)}) (.catch x)" {:classes {:allow :all }})))
402
- #_ (is (= 1 (sci/eval-string " (d/foo-bar)" {:imports {'d 'dude}
402
+ (is (= 1 (sci/eval-string " (d/foo-bar)" {:imports {'d 'dude}
403
403
:classes {:allow :all 'dude #js {:foo_bar (fn [] 1 )}}}))))
404
404
(is (= {:foo_bar 1 } (sci/eval-string " (js->clj (doto #js {} (set! -foo-bar 1)) :keywordize-keys true)" {:classes {:allow :all }})))
405
405
(testing " dotted access"
You can’t perform that action at this time.
0 commit comments