deps/v8/src/js/i18n.js
function getNumberOption(options, property, min, max, fallback) {
  var value = options[property];
  if (!IS_UNDEFINED(value)) {
    value = TO_NUMBER(value);
    if (NUMBER_IS_NAN(value) || value < min || value > max) {
      throw MakeRangeError(kPropertyValueOutOfRange, property);
    }
    return %math_floor(value);
  }

  return fallback;
}
function getNumberOption(options, property, min, max, fallback) {
  var value = options[property];
  if (!IS_UNDEFINED(value)) {
    value = TO_NUMBER(value);
    if (NUMBER_IS_NAN(value) || value < min || value > max) {
      throw MakeRangeError(kPropertyValueOutOfRange, property);
    }
    return %math_floor(value);
  }

  return fallback;
}
Returns the valid digit count for a property, or throws RangeError on
a value out of the range.