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

new Function vs function(){} #1

Closed
phated opened this issue Dec 28, 2012 · 2 comments
Closed

new Function vs function(){} #1

phated opened this issue Dec 28, 2012 · 2 comments
Assignees
Milestone

Comments

@phated
Copy link

phated commented Dec 28, 2012

When trying to use this in a Chrome Extension/App, CSP throws an error due to the use of new Function. Would it be possible to use function () {}, instead, to avoid this problem?

@uhop
Copy link
Owner

uhop commented Dec 28, 2012

Sure thing. new Function was used mostly for historic reasons.

@ghost ghost assigned uhop Dec 28, 2012
@uhop
Copy link
Owner

uhop commented Dec 28, 2012

I plan to release 1.0.2 on Sunday. Please use the master branch for now. If you find any problems, please reopen the issue.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants