PATH:
usr
/
local
/
lib
/
node_modules
/
gulp
/
node_modules
/
es5-ext
/
test
/
object
"use strict"; module.exports = function (t, a) { var o, o1, o2, x, y = {}, z = {}; o = { inherited: true }; o1 = Object.create(o); o1.visible = z; o1.nonremovable = "raz"; Object.defineProperty(o1, "hidden", { value: "hidden" }); o2 = Object.defineProperties({}, { nonremovable: { value: y } }); o2.other = "other"; try { t(o2, o1); } catch (ignore) {} a(o2.visible, z, "Enumerable"); a(o1.hidden, "hidden", "Not Enumerable"); a(o2.propertyIsEnumerable("visible"), true, "Enumerable is enumerable"); a(o2.propertyIsEnumerable("hidden"), false, "Not enumerable is not enumerable"); a(o2.hasOwnProperty("inherited"), false, "Extend only own"); a(o2.inherited, undefined, "Extend ony own: value"); a(o2.nonremovable, y, "Do not overwrite non configurable"); a(o2.other, "other", "Own kept"); x = {}; t(x, o2); try { t(x, o1); } catch (ignore) {} a(x.visible, z, "Enumerable"); a(x.hidden, "hidden", "Not Enumerable"); a(x.propertyIsEnumerable("visible"), true, "Enumerable is enumerable"); a(x.propertyIsEnumerable("hidden"), false, "Not enumerable is not enumerable"); a(x.hasOwnProperty("inherited"), false, "Extend only own"); a(x.inherited, undefined, "Extend ony own: value"); a(x.nonremovable, y, "Ignored non configurable"); a(x.other, "other", "Other"); x.visible = 3; a(x.visible, 3, "Writable is writable"); x = {}; t(x, o1); a.throws(function () { x.hidden = 3; }, "Not writable is not writable"); x = {}; t(x, o1); delete x.visible; a.ok(!x.hasOwnProperty("visible"), "Configurable is configurable"); x = {}; t(x, o1); a.throws(function () { delete x.hidden; }, "Not configurable is not configurable"); x = Object.defineProperty({}, "foo", { configurable: false, writable: true, enumerable: false, value: "bar" }); try { t(x, { foo: "lorem" }); } catch (ignore) {} a(x.foo, "bar", "Writable, not enumerable"); };
[-] is-callable.js
[edit]
[-] compact.js
[edit]
[-] copy-deep.js
[edit]
[-] first-key.js
[edit]
[-] ensure-finite-number.js
[edit]
[-] find.js
[edit]
[-] validate-stringifiable-value.js
[edit]
[-] validate-array-like.js
[edit]
[-] validate-array-like-object.js
[edit]
[-] ensure-natural-number.js
[edit]
[-] ensure-promise.js
[edit]
[-] mixin-prototypes.js
[edit]
[-] map-keys.js
[edit]
[-] is-array-like.js
[edit]
[-] is-value.js
[edit]
[-] is-integer.js
[edit]
[-] copy.js
[edit]
[-] is-empty.js
[edit]
[-] is.js
[edit]
[+]
..
[+]
keys
[-] some.js
[edit]
[-] key-of.js
[edit]
[-] find-key.js
[edit]
[+]
assign
[-] is-promise.js
[edit]
[-] is-copy-deep.js
[edit]
[-] validate-stringifiable.js
[edit]
[-] flatten.js
[edit]
[-] is-object.js
[edit]
[-] unserialize.js
[edit]
[-] ensure-thenable.js
[edit]
[-] valid-value.js
[edit]
[-] eq.js
[edit]
[-] valid-object.js
[edit]
[+]
entries
[-] is-plain-function.js
[edit]
[-] get-property-names.js
[edit]
[-] ensure-plain-object.js
[edit]
[-] assign-deep.js
[edit]
[-] ensure-natural-number-value.js
[edit]
[-] is-plain-object.js
[edit]
[-] is-thenable.js
[edit]
[-] count.js
[edit]
[-] to-array.js
[edit]
[-] _iterate.js
[edit]
[-] primitive-set.js
[edit]
[-] compare.js
[edit]
[-] is-finite-number.js
[edit]
[-] map.js
[edit]
[-] filter.js
[edit]
[-] every.js
[edit]
[-] ensure-plain-function.js
[edit]
[-] safe-traverse.js
[edit]
[-] create.js
[edit]
[-] is-copy.js
[edit]
[-] is-natural-number-value.js
[edit]
[-] clear.js
[edit]
[-] ensure-array.js
[edit]
[-] is-natural-number.js
[edit]
[-] valid-callable.js
[edit]
[-] for-each.js
[edit]
[+]
set-prototype-of
[-] normalize-options.js
[edit]
[-] serialize.js
[edit]
[-] is-number-value.js
[edit]
[-] mixin.js
[edit]
[-] ensure-integer.js
[edit]