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

22 lines
638 B
Plaintext

'use strict';
var callBind = require('call-bind');
var test = require('tape');
var hasStrictMode = require('has-strict-mode')();
var implementation = require('../implementation');
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 () { implementation.call(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(callBind(implementation), t);
t.end();
});