Mercurial > urweb
comparison lib/js/urweb.js @ 1262:003df929ee08
Switch to strings and eval for thunkifying JavaScripted functions
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 22 May 2010 16:29:54 -0400 |
parents | 25ebd8c4fafb |
children | 6791454653c5 |
comparison
equal
deleted
inserted
replaced
1261:04e9885cbe56 | 1262:003df929ee08 |
---|---|
1076 break; | 1076 break; |
1077 case "n": | 1077 case "n": |
1078 var idx = e.n; | 1078 var idx = e.n; |
1079 e = urfuncs[idx]; | 1079 e = urfuncs[idx]; |
1080 if (e.c == "t") | 1080 if (e.c == "t") |
1081 e = urfuncs[idx] = e.f(); | 1081 e = urfuncs[idx] = eval("(" + e.f + ")"); |
1082 break; | 1082 break; |
1083 case "s": | 1083 case "s": |
1084 stack = cons({c: "s"}, stack); | 1084 stack = cons({c: "s"}, stack); |
1085 e = e.v; | 1085 e = e.v; |
1086 break; | 1086 break; |