summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-02-01 12:29:14 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2015-02-01 12:29:14 -0500
commit6413f39758d223c6763c4bbe708048b4e570a98e (patch)
treedf37df1329c579861b6337d2de241d67084f9618 /lib/js
parent1a063e0d926ebaf414349df3854af12369c81f5a (diff)
A new MonoReduce optimization for lifting 'let' out of field projection; JavaScript compilation for exponentiation
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 df9097b1..3bf21dd2 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -112,6 +112,10 @@ function round(n) {
return Math.round(n);
}
+function pow(n, m) {
+ return Math.pow(n, m);
+}
+
// Time, represented as counts of microseconds since the epoch