]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/test/object/get-property-names.js
b91c3dd50e7bbf48ddff1ca0a322c3e0529a03a8
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / test / object / get-property-names.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var o = { first: 1, second: 4 }, r1, r2;
5         o = Object.create(o, {
6                 third: { value: null }
7         });
8         o.first = 2;
9         o = Object.create(o);
10         o.fourth = 3;
11
12         r1 = t(o);
13         r1.sort();
14         r2 = ['first', 'second', 'third', 'fourth']
15                 .concat(Object.getOwnPropertyNames(Object.prototype));
16         r2.sort();
17         a.deep(r1, r2);
18 };