aboutsummaryrefslogtreecommitdiffhomepage
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
commiteab0e09b2b4d125abb98e088ff9a03581aa05717 (patch)
treedf37df1329c579861b6337d2de241d67084f9618 /lib/js
parent2200a9e67a5e280406f55048dc03b5a8fd51d642 (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