Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

When :infer-externs is true in 1.9.908, an NPE will result from the Closure compiler. Also reported here with a stacktrace:

https://github.com/google/closure-compiler/issues/2629

3 Answers

0 votes
by

Comment made by: deraen

Well, this is interesting. I haven't been able to reproduce this without Boot-cljs completely, but I can reproduce this with Cljs by manually providing extern with single line: var COMPILED;. For some reason, inferred extern with Boot-cljs includes this line, but not when calling compiler directly.
`

0 votes
by

Comment made by: kommen

The above (link: https://github.com/google/closure-compiler/issues/2629 text: linked closure-compiler issue) has been closed. https://github.com/clojure/clojurescript/commit/30bc7c2ef251d74c2ab398c2a1461984f9c80469 might have fixed this issue.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2347 (reported by alex+import)
...