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

21 lines
597 B
Plaintext

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