3799226a92ca159812941a64c62e3a9db7b091e90eb1d3e075db75919fcf4ecdaa8040d717818049a4b01ba2064d51f1d93d3484181164bb9e0c14f2bb5b9e 645 B

1234567891011121314151617181920
  1. 'use strict';
  2. var implementation = require('../implementation');
  3. var callBind = require('call-bind');
  4. var test = require('tape');
  5. var hasStrictMode = require('has-strict-mode')();
  6. var runTests = require('./tests');
  7. test('as a function', function (t) {
  8. t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
  9. /* eslint no-useless-call: 0 */
  10. st['throws'](function () { implementation.call(undefined); }, TypeError, 'undefined is not an object');
  11. st['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object');
  12. st.end();
  13. });
  14. runTests(callBind(implementation, Object), t);
  15. t.end();
  16. });