зеркало из https://github.com/mozilla/pjs.git
scope of loop variables fix
This commit is contained in:
Родитель
ea69cc72ef
Коммит
a915099fef
|
@ -193,7 +193,7 @@ 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) );
|
||||
|
||||
}
|
||||
|
|
|
@ -193,7 +193,7 @@ 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) );
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче