shim.js 300 B

1234567891011
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a(t(), 0, "No arguments");
  4. a(t(0, -0, 0), 0, "Zeros");
  5. a(t(4, NaN, Infinity), Infinity, "Infinity");
  6. a(t(4, NaN, -Infinity), Infinity, "Infinity");
  7. a(t(4, NaN, 34), NaN, "NaN");
  8. a(t(3, 4), 5, "#1");
  9. a(t(3, 4, 5), 7.0710678118654755, "#2");
  10. };