summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-07-29 12:54:17 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-07-29 12:54:17 -0400
commit722b0c632007ac6ea178b05695974e447b4288a3 (patch)
treef0f17552f12e8b46b85a3530eef20d4cd54bfb4d /lib/js
parent4211ec9bd6e9d8172f74cdb56a1207fc1d64990f (diff)
Removed evaluation of js function name strings. (from Vladimir Shabanov)
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 1beb63c3..4ef77599 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -1711,10 +1711,10 @@ function exec1(env, stack, e) {
break;
case "f":
if (e.a == null)
- e = {c: "c", v: (eval(e.f))()};
+ e = {c: "c", v: e.f()};
else {
var args = [];
- stack = cons({c: "f", f: eval(e.f), args: args, pos: 0, a: e.a.next}, stack);
+ stack = cons({c: "f", f: e.f, args: args, pos: 0, a: e.a.next}, stack);
if (!e.a.data.c) alert("[2] fr.f = " + e.f + "; 0 = " + e.a.data);
e = e.a.data;
}