Skip to content

Remove instance of 'new require' anti-pattern#21

Open
talbenari1 wants to merge 1 commit into
acmeair:masterfrom
talbenari1:master
Open

Remove instance of 'new require' anti-pattern#21
talbenari1 wants to merge 1 commit into
acmeair:masterfrom
talbenari1:master

Conversation

@talbenari1

Copy link
Copy Markdown

Although it works correctly in Node.js, calling 'require' as a
constructor is a discouraged and undocumented behavior, which may break
in the future. Note that removing the 'new' keyword does not change
functionality.

Although it works correctly in Node.js, calling 'require' as a
constructor is a discouraged and undocumented behavior, which may break
in the future. Note that removing the 'new' keyword does not change
functionality.
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