Sha256: 906d0fb095a5be86476e5c47a0dda180623dd04e2554f34fa26ab5b00ca0353a
Contents?: true
Size: 591 Bytes
Versions: 53
Compression:
Stored size: 591 Bytes
Contents
'use strict'; var MapPoly = require('../polyfill'); module.exports = function (t, a) { var map; a.throws(function () { t(undefined); }, TypeError, "Undefined"); a.throws(function () { t(null); }, TypeError, "Null"); a.throws(function () { t(true); }, TypeError, "Primitive"); a.throws(function () { t('raz'); }, TypeError, "String"); a.throws(function () { t({}); }, TypeError, "Object"); a.throws(function () { t([]); }, TypeError, "Array"); if (typeof Map !== 'undefined') { map = new Map(); a(t(map), map, "Native"); } map = new MapPoly(); a(t(map), map, "Polyfill"); };
Version data entries
53 entries across 53 versions & 7 rubygems