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

info cljs: don't mistakenly prioritize special form names over var names #184

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

vemv
Copy link
Member

@vemv vemv commented Sep 2, 2023

Fixes #182

Cheers - V

@vemv vemv requested a review from bbatsov September 2, 2023 13:56
(when cljs-available?
(testing "- :cljs"
(let [special-doc-map (misc/require-and-resolve 'cljs.repl/special-doc-map)
special-syms (into '#{in-ns load load-file} (keys special-doc-map))]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed load-file because it's a public function (https://github.com/clojure/clojurescript/blob/17068fa91cae169ed7c881adb593d85138efe6d0/src/main/cljs/cljs/core.cljs#L338) and a special form (https://cljs.github.io/api/cljs.core/load-file)

Because that's such an exceptional case, for a rarely-used piece of functionality, I didn't spend much time deliberating whether to favor one or the other.

@bbatsov bbatsov merged commit 29ce583 into master Sep 7, 2023
@bbatsov
Copy link
Member

bbatsov commented Sep 7, 2023

Looks good to me!

@bbatsov bbatsov deleted the 182 branch September 7, 2023 16:05
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

Successfully merging this pull request may close these issues.

info returns the wrong docstring for cljs spec/def
2 participants