fix FI_* of Math.*
This commit is contained in:
Родитель
45a3601db6
Коммит
b41b535aea
|
@ -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 = '';
|
||||
|
|
Загрузка…
Ссылка в новой задаче