]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/test/array/#/compact.js
6390eb26dddf6b5896ad23474e1f2352db44bc7b
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / test / array / # / compact.js
1 'use strict';
2
3 module.exports = {
4 __generic: function (t, a) {
5 a(t.call(this).length, 3);
6 },
7 "": function (t, a) {
8 var o, x, y, z;
9 o = {};
10 x = [0, 1, "", null, o, false, undefined, true];
11 y = x.slice(0);
12
13 a.not(z = t.call(x), x, "Returns different object");
14 a.deep(x, y, "Origin not changed");
15 a.deep(z, [0, 1, "", o, false, true], "Result");
16 }
17 };