diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-08 14:53:30 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-08 14:53:30 -0700 |
commit | 0c716b3e53394a3269129974caa92cab676ee3a0 (patch) | |
tree | ef15475b33444db1dd461a4fbf89c1e71e91c2c3 | |
parent | 4ead9dad30c559f0d342c592633d3ad73d8b1bd3 (diff) |
fix function table wrapping of Math.*
-rw-r--r-- | src/modules.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js index 9cbe88aa..a182e8fc 100644 --- a/src/modules.js +++ b/src/modules.js @@ -318,6 +318,7 @@ var Functions = { if (ASM_JS) { var curr = table[i]; if (curr && curr != '0' && !Functions.implementedFunctions[curr]) { + curr = curr.replace('.', '_'); // fix Math.* to Math_* // This is a library function, we can't just put it in the function table, need a wrapper if (!wrapped[curr]) { var args = '', arg_coercions = '', call = curr + '(', retPre = '', retPost = ''; |