361255787e27f1c640ec7d7d20a9e1ca160c1d0d6b3dc8246a3c1197195671e7b1af9077c057f9b87428ecd6341a4cc6876b379b988589ee922e9ade0ebea2 501 B

123456789101112131415161718
  1. 'use strict';
  2. var implementation = require('../');
  3. var callBind = require('call-bind');
  4. var test = require('tape');
  5. var runTests = require('./tests');
  6. test('as a function', function (t) {
  7. t.test('bad array/this value', function (st) {
  8. st['throws'](callBind(implementation, null, undefined, 'a'), TypeError, 'undefined is not an object');
  9. st['throws'](callBind(implementation, null, null, 'a'), TypeError, 'null is not an object');
  10. st.end();
  11. });
  12. runTests(implementation, t);
  13. t.end();
  14. });