aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Scope.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Scope.js b/src/Scope.js
index e9b61ec4..b45efbce 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -72,8 +72,8 @@ function getterFn(path){
}
});
code += ' return self;\n}';
- fn = eval('(' + code + ')');
- fn.toString = function(){ return code; };
+ fn = eval('fn = ' + code);
+ fn["toString"] = function(){ return code; };
return getterFnCache[path] = fn;
}