ensure-plain-function.js 237 B

1234567891011121314
  1. "use strict";
  2. module.exports = function (t, a) {
  3. // Just sanity checks, as logic is tested at isPlainFunction
  4. var fn = function () {};
  5. a(t(fn), fn, "Function");
  6. a.throws(
  7. function () {
  8. t({});
  9. },
  10. TypeError,
  11. "Error"
  12. );
  13. };