зеркало из https://github.com/mozilla/gecko-dev.git
Bug 985089 followup: fix mis-spelling of isNaN, r=gfritzsche
This commit is contained in:
Родитель
efdee4270b
Коммит
f00c99bc43
|
@ -252,7 +252,7 @@ Experiments.Policy.prototype = {
|
||||||
if (pref !== undefined) {
|
if (pref !== undefined) {
|
||||||
let val = Number.parseFloat(pref);
|
let val = Number.parseFloat(pref);
|
||||||
this._log.debug("random sample forced: " + val);
|
this._log.debug("random sample forced: " + val);
|
||||||
if (IsNaN(val) || val < 0) {
|
if (isNaN(val) || val < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (val > 1) {
|
if (val > 1) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче