Returns the valid digit count for a property, or throws RangeError on
a value out of the range.
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;
}