shim.js 294 B

1234567891011
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(2), true, "Number");
  4. a(t(2.34), false, "Float");
  5. a(t(Math.pow(2, 53)), false, "Too large");
  6. a(t(Math.pow(2, 53) - 1), true, "Maximum");
  7. a(t("23"), false, "Not numeric");
  8. a(t(NaN), false, "NaN");
  9. a(t(Infinity), false, "Infinity");
  10. };