Bug 985089 followup: fix mis-spelling of isNaN, r=gfritzsche

This commit is contained in:
Benjamin Smedberg 2014-04-04 09:16:58 -04:00
parent efdee4270b
commit f00c99bc43

View File

@ -252,7 +252,7 @@ Experiments.Policy.prototype = {
if (pref !== undefined) {
let val = Number.parseFloat(pref);
this._log.debug("random sample forced: " + val);
if (IsNaN(val) || val < 0) {
if (isNaN(val) || val < 0) {
return 0;
}
if (val > 1) {