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
Merged

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

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

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

Very nice. Thanks!

@jugglinmike jugglinmike merged commit c13c5cc into jshint:master Feb 13, 2021
@lauriro lauriro deleted the fix-function-warn branch November 6, 2021 08:54
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.

None yet

3 participants