aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-15 23:15:05 -0700
committeralon@honor <none@none>2010-10-15 23:15:05 -0700
commit0be63d3eeba00b0e68d309e4af84f4906b1750aa (patch)
tree80ea79592e02ecfaaa4365b382b40471c5251dc0 /src/library.js
parent5c33e208873515258c577350f2e006c1563b12af (diff)
avoid redirection for math funcs
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library.js b/src/library.js
index 0663d6c1..fc9e34c6 100644
--- a/src/library.js
+++ b/src/library.js
@@ -180,10 +180,10 @@ var Library = {
// math.h
- cos: function(x) { return Math.cos(x) },
- sin: function(x) { return Math.sin(x) },
- sqrt: function(x) { return Math.sqrt(x) },
- llvm_sqrt_f64: 'sqrt',
+ cos: 'Math.cos',
+ sin: 'Math.sin',
+ sqrt: 'Math.sqrt',
+ llvm_sqrt_f64: 'Math.sqrt',
// unistd.h