This commit is contained in:
Alon Zakai 2013-05-08 14:59:48 -07:00
Родитель 45a3601db6
Коммит b41b535aea
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -259,7 +259,7 @@ var Functions = {
}
if (phase != 'post' && singlePhase) {
if (!doNotCreate) this.indexedFunctions[ident] = 0; // tell python we need this indexized
return "'{{ FI_" + ident + " }}'"; // something python will replace later
return "'{{ FI_" + toNiceIdent(ident) + " }}'"; // something python will replace later
} else {
var ret = this.indexedFunctions[ident];
if (!ret) {
@ -318,7 +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_*
curr = toNiceIdent(curr); // 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 = '';