diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-05-22 16:29:54 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-05-22 16:29:54 -0400 |
commit | a89f9edc1c5718c2f6c1fcce2c131e6b4c2cced7 (patch) | |
tree | c34c7c6d8fb4a1ea2f03fa641ee1db54fddcd8c3 /lib | |
parent | 4a916000c43f1dd90211aa3bdc810539baa406b8 (diff) |
Switch to strings and eval for thunkifying JavaScripted functions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/js/urweb.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 4f477f2e..6215a54c 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -1078,7 +1078,7 @@ function exec1(env, stack, e) { var idx = e.n; e = urfuncs[idx]; if (e.c == "t") - e = urfuncs[idx] = e.f(); + e = urfuncs[idx] = eval("(" + e.f + ")"); break; case "s": stack = cons({c: "s"}, stack); |