From 4c610dfff4ff6efc3cbb1aa13a69f22329884836 Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Sun, 14 Jun 2015 10:32:53 +0300 Subject: [PATCH] No reason to use `eval` here thank you very much. Not sure if this project is maintained - but found this at GH code search and figured I might as well fix it. --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index ae7bde0..b9d64de 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,7 +1,7 @@ function unifyProperties(source, dest) { for (var p in source) { - eval("dest."+p+"=source."+p) + dest[p] = source[p]; } } @@ -12,4 +12,4 @@ function getTypeName(obj) { } exports.unifyProperties = unifyProperties -exports.getTypeName = getTypeName \ No newline at end of file +exports.getTypeName = getTypeName