aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 10:00:10 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 10:00:10 -0500
commit2286c970ce9d32a630e289df2685dbdff8e18217 (patch)
tree999270929063a6966b6a45583e091ce015e612b3 /lib/js
parent7136358c17f8193173e8a0a9469821039212d879 (diff)
Allow sources to be returned by RPCs
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index f05957a0..015befa6 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -976,6 +976,10 @@ function pflo(s) {
return null;
}
+function parseSource(s1, s2) {
+ return eval("s" + s1 + "_" + s2);
+}
+
function uf(s) {
if (s.length == 0)
return "_";