This commit is contained in:
szabomarton
2025-01-28 11:38:27 +01:00
parent 9c5ca86086
commit 7f4a15b9c3
36841 changed files with 4032468 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
'use strict';
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st['throws'](function () { Object.entries(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { Object.entries(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(Object.entries, t);
t.end();
});