source: imaps-frontend/node_modules/object.entries/test/native.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 419 bytes
Line 
1'use strict';
2
3var test = require('tape');
4var runTests = require('./tests');
5
6test('as a function', function (t) {
7 t.test('bad array/this value', function (st) {
8 st['throws'](function () { Object.entries(undefined); }, TypeError, 'undefined is not an object');
9 st['throws'](function () { Object.entries(null); }, TypeError, 'null is not an object');
10 st.end();
11 });
12
13 runTests(Object.entries, t);
14
15 t.end();
16});
Note: See TracBrowser for help on using the repository browser.