shim.js 272 B

1234567891011
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t({}), NaN, "NaN");
  4. a(t(-2), NaN, "Less than -1");
  5. a(t(2), NaN, "Greater than 1");
  6. a(t(-1), -Infinity, "-1");
  7. a(t(1), Infinity, "1");
  8. a(t(0), 0, "Zero");
  9. a(Math.round(t(0.5) * 1e15), 549306144334055, "Other");
  10. };