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

[[FIX]] Don't warn when Function() is used without 'new'. #3531

Merged
merged 1 commit into from Feb 13, 2021

Conversation

@lauriro
Copy link
Contributor

@lauriro lauriro commented Feb 8, 2021

https://262.ecma-international.org/#sec-function-constructor
...
the function call Function(…) is equivalent to the object creation
expression new Function(…) with the same arguments
...

https://262.ecma-international.org/#sec-function-constructor
...
the function call Function(…) is equivalent to the object creation
expression new Function(…) with the same arguments
...
@coveralls
Copy link

@coveralls coveralls commented Feb 8, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling 8500c9c on lauriro:fix-function-warn into c18a6e4 on jshint:master.

@jugglinmike
Copy link
Member

@jugglinmike jugglinmike commented Feb 13, 2021

Very nice. Thanks!

@jugglinmike jugglinmike merged commit c13c5cc into jshint:master Feb 13, 2021
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 100.0%
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants