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

Warn when functions intended as constructors are called without new #2021

Merged
merged 2 commits into from Dec 17, 2019

Commits on Dec 6, 2019

  1. Warn when pg.Pool() isn’t called as a constructor

    in preparation for brianc#1541. `eval` is a bit awkward, but it’s more accurate than an `instanceof` check and will work on platforms new enough to support pg 8 (i.e. only not Node 4).
    charmander committed Dec 6, 2019
    Copy the full SHA
    deebe7d View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    aeb0ab6 View commit details
    Browse the repository at this point in the history