Skip to content

Refactor has-extern? / js-tag #246

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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

swannodette
Copy link
Member

No description provided.

… js-tag

* test are failing because
  - we have a bad hack that assumes we have an instance
  - extern-var-info doesn't tell us what the *resolved* prefix is
… to continue resolving

* can infer console.log again
  - we only care about var info for the last property
  - we don't what prefix resolution to clobber the actual instance var info
* remove js-tag, incomplete, instead use resolve-extern
* add normalize-unresolved-prefix to fix up the cases we can't find
* add impl unit tests
* all externs infer tests passing again
  - CLJS uses boolean
  - but externs inference returns js/Boolean
* in resolve-var add the ctor to the tag to track later, this also lets the extra information flow
* in analyze-dot check to see if the target is a constructor
  - if it is use that tag instead, Function is not desirable
* safe-test? needs to check js/Boolean now
* unit tests
* show that type inference for a crypto.subtle call works
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