зеркало из https://github.com/mozilla/pjs.git
scope of loop variables fix
This commit is contained in:
Родитель
ea69cc72ef
Коммит
a915099fef
|
@ -193,11 +193,11 @@ JSMath::JSMath()
|
|||
for (int i = 0; i < sizeof(MathFunctions) / sizeof(MathFunctionEntry); i++)
|
||||
setProperty(widenCString(MathFunctions[i].name), JSValue(new JSNativeFunction(MathFunctions[i].fn) ) );
|
||||
|
||||
for (i = 0; i < sizeof(MathConstants) / sizeof(MathConstantEntry); i++)
|
||||
for (int i = 0; i < sizeof(MathConstants) / sizeof(MathConstantEntry); i++)
|
||||
setProperty(widenCString(MathConstants[i].name), JSValue(MathConstants[i].value) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
} /* JSMathClass */
|
||||
} /* JavaScript */
|
||||
} /* JavaScript */
|
||||
|
|
|
@ -193,11 +193,11 @@ JSMath::JSMath()
|
|||
for (int i = 0; i < sizeof(MathFunctions) / sizeof(MathFunctionEntry); i++)
|
||||
setProperty(widenCString(MathFunctions[i].name), JSValue(new JSNativeFunction(MathFunctions[i].fn) ) );
|
||||
|
||||
for (i = 0; i < sizeof(MathConstants) / sizeof(MathConstantEntry); i++)
|
||||
for (int i = 0; i < sizeof(MathConstants) / sizeof(MathConstantEntry); i++)
|
||||
setProperty(widenCString(MathConstants[i].name), JSValue(MathConstants[i].value) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
} /* JSMathClass */
|
||||
} /* JavaScript */
|
||||
} /* JavaScript */
|
||||
|
|
Загрузка…
Ссылка в новой задаче