Sha256: 70c29b4d872d765ccba414933ec08b990ec87af1018125d1a84a8c819c255dfb
Contents?: true
Size: 685 Bytes
Versions: 58
Compression:
Stored size: 685 Bytes
Contents
'use strict'; var create = require('../../../object/create') , getPrototypeOf = Object.getPrototypeOf; module.exports = function (t, a) { var x = {}, y = {}; if (t === null) return; a(t(x, y), x, "Return self object"); a(getPrototypeOf(x), y, "Object"); a.throws(function () { t(x); }, TypeError, "Undefined"); a.throws(function () { t('foo'); }, TypeError, "Primitive"); a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null"); x = create(null); a.h1("Change null prototype"); a(t(x, y), x, "Result"); a(getPrototypeOf(x), y, "Prototype"); a.h1("Set null prototype"); a(t(y, null), y, "Result"); a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype"); };
Version data entries
58 entries across 19 versions & 7 rubygems