Files
NapCatQQ/.pnpm-store/v3/files/a6/f70bca70968f3d4af338bf0e037e96eda5bd57a4c5b3ff0f9902c1033f3bbd927a4e52ae091c733440acd41a279af9b6f7c6db1c31d4234aaf1755ffdc5f44
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
555 B
Plaintext

'use strict';
var test = require('tape');
var hasStrictMode = require('has-strict-mode')();
var bound = require('../');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
/* eslint no-useless-call: 0 */
st['throws'](function () { return bound.call(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { return bound.call(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(bound, t);
t.end();
});