Sha256: a5568b1f8d1eb449ceb257c2d5e21811edd1fe4635333da051956d6b81e14791
Contents?: true
Size: 467 Bytes
Versions: 15
Compression:
Stored size: 467 Bytes
Contents
'use strict'; module.exports = function (t, a) { var x; a(t(), 'undefined', "Undefined"); a(t(null), 'null', "Null"); a(t(0), "0"); a(t(false), "false"); a(t(''), ""); a(t({}), String({}), "Object"); a(t(x = function () {}), String(x), "Function"); a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore a(t(x = new Date()), String(x), "Date"); a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object"); };
Version data entries
15 entries across 12 versions & 6 rubygems