Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

use new Function instead of eval #53

Closed
mhevery opened this issue Oct 14, 2010 · 1 comment
Closed

use new Function instead of eval #53

mhevery opened this issue Oct 14, 2010 · 1 comment

Comments

@mhevery
Copy link
Contributor

mhevery commented Oct 14, 2010

in the getterFn method I see the following line:
fn = eval('fn = ' + code);
I think it would be better if it was
fn = new Function(code,'key');

@mhevery
Copy link
Contributor Author

mhevery commented Oct 14, 2010

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

No branches or pull requests

1 participant