Skip to content

CLJS-3438: Inference for goog.object/containsKey returns any, not boolean #262

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

Merged
merged 5 commits into from
Jul 7, 2025

Conversation

swannodette
Copy link
Member

@swannodette swannodette commented Jul 6, 2025

  • fix desugar-dotted-expr, generated malformed AST in the case of goog.module var

  • compiler test for goog.object/containsKey

  • uncomment test, now passes

  • but compiler-tests are failing due to warning about incorrect usage of goog.object/get, but that's because we don't parse optional params yet, need to fix cljs.externs

  • also need to resolve to the original goog.module var name and not the local thing in the namespace. Probably want to mark these somehow so that the warnings can use the original name.

…oolean

- fix desugar-dotted-expr, generated malformed AST in the case of goog.module var
- compiler test for goog.object/containsKey
- uncomment test now passes

... but compiler-tests are failing due
to warning about incorrect usage of
goog.object/get, but that's because
we don't parse options params yet

also need to resolve to the original
goog.module var name and not the local
thing in the namespace
- check for the unaliased-name when warning about arity in parse-invoke*
@swannodette swannodette merged commit 60c9055 into master Jul 7, 2025
10 checks passed
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.

1 participant