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

Bad import taints analysis metadata #888

Closed
mfikes opened this issue Mar 18, 2019 · 1 comment
Closed

Bad import taints analysis metadata #888

mfikes opened this issue Mar 18, 2019 · 1 comment

Comments

@mfikes
Copy link
Member

mfikes commented Mar 18, 2019

$ plk
ClojureScript 1.10.520
cljs.user=> (import '(goog Uri))
nil
cljs.user=> (ns-imports 'cljs.user)
{Uri #object[Function]}
cljs.user=> (import '(goog.net Url))
Execution error (ExceptionInfo) at (<cljs repl>:1).
No such namespace: goog.net.Url, could not locate goog/net/Url.cljs, goog/net/Url.cljc, or JavaScript source providing "goog.net.Url"
cljs.user=> (ns-imports 'cljs.user)
Execution error (Error) at (<cljs repl>:1).
undefined is not an object (evaluating 'goog.net.Url')

The above (where ns-imports no longer works) doesn't happen in JVM ClojureScript.

@mfikes
Copy link
Member Author

mfikes commented Mar 18, 2019

cljs.user=> (get-in @cljs.env/*compiler* [:cljs.analyzer/namespaces 'cljs.user :imports])
{Uri goog.Uri, Url goog.net.Url}

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