From a590802b36b36d15424983c121f701f05f153d74 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Tue, 5 Mar 2013 22:27:39 -0700 Subject: [PATCH] use indirect eval --- whalesong/repl-prototype/htdocs/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whalesong/repl-prototype/htdocs/repl.js b/whalesong/repl-prototype/htdocs/repl.js index 1d6a409..bdd9c78 100644 --- a/whalesong/repl-prototype/htdocs/repl.js +++ b/whalesong/repl-prototype/htdocs/repl.js @@ -139,7 +139,7 @@ $(document).ready(function() { var compiledCodes = compiledResult.compiledCodes; forEachK(compiledCodes, function(code, k) { - var codeFunction = eval(code); + var codeFunction = (0,eval)(code); var onGoodEvaluation = function() { var resultList = M.v; while(resultList !== plt.baselib.lists.EMPTY) {