20877bf484618a03a2132a87f8ca975f4a4f0e8bcfbb26561ccbb972d5f7698d7ea0322c6e4ad57f0735955b5af3c1f55dd003410a67e60a70f7f4aa39e399 603 B

12345678910111213141516171819
  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 first arg/receiver', { skip: !hasStrictMode }, function (st) {
  9. st['throws'](function () { implementation(undefined); }, TypeError, 'undefined is not an object');
  10. st['throws'](function () { implementation(null); }, TypeError, 'null is not an object');
  11. st.end();
  12. });
  13. runTests(callBind(implementation, Object), t);
  14. t.end();
  15. });