Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS interop breaks after merge-opts #583

Closed
borkdude opened this issue Jul 2, 2021 · 0 comments
Closed

JS interop breaks after merge-opts #583

borkdude opened this issue Jul 2, 2021 · 0 comments

Comments

@borkdude
Copy link
Collaborator

borkdude commented Jul 2, 2021

cljs.user=> (def ctx (sci/init {:classes {'js goog/global :allow :all}}))
#'cljs.user/ctx
cljs.user=> (sci/eval-string* ctx "(try (assoc 1 1 1) (catch js/Error e 12))" )
12
cljs.user=> (def ctx2 (sci/merge-opts ctx {:namespaces {}}))
#'cljs.user/ctx2
cljs.user=> (sci/eval-string* ctx2 "(try (assoc 1 1 1) (catch js/Error e 12))" )
Execution error (ExceptionInfo) at (<cljs repl>:1).
Unable to resolve classname: js/Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant