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

Remove string-to-function eval from named function factory #17288

Closed
wants to merge 1 commit into from

Conversation

NickCarducci
Copy link
Contributor

return the object key [name] as caller.name of the new function

return the object key [name] as caller.name of the new function
@curiousdannii
Copy link
Contributor

Can you use a more descriptive title? There's nothing "evil" about the Function constructor or dynamic code in general.

@NickCarducci
Copy link
Contributor Author

what is this then jshint evil:true?

@NickCarducci NickCarducci changed the title Remove evil js from named function factory Remove string-to-function eval from named function factory Jun 22, 2022
@curiousdannii
Copy link
Contributor

curiousdannii commented Jun 22, 2022

Thanks!

It's an old JSHint option, which is more provocatively named than it should be.

@NickCarducci
Copy link
Contributor Author

another rebase

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.

2 participants