aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-10 14:35:30 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-10 14:35:30 -0800
commit71a558585623a8cd564a55d1a7d2af6032c29ff8 (patch)
tree91cbb4dc66b7f8f7ddeb8dc72c2be5152f1ff480 /src
parentbf3e22d4fccd928aa08da6829c058a65ed789c62 (diff)
fix calling of functions library-redirected to Math.*
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 8702ee23..5e5baf33 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1241,7 +1241,9 @@ function JSify(data, functionsOnly, givenFunctions) {
var callIdent = LibraryManager.getRootIdent(shortident);
if (callIdent) {
shortident = callIdent; // ident may not be in library, if all there is is ident__inline, but in this case it is
- callIdent = '_' + callIdent;
+ if (callIdent.indexOf('.') < 0) {
+ callIdent = '_' + callIdent; // Not Math.*, so add the normal prefix
+ }
} else {
callIdent = ident;
}