massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.composite-key.js
1 var $ = require('../internals/export');
2 var global = require('../internals/global');
3 var apply = require('../internals/function-apply');
4 var getCompositeKeyNode = require('../internals/composite-key');
5 var getBuiltIn = require('../internals/get-built-in');
6 var create = require('../internals/object-create');
7
8 var Object = global.Object;
9
10 var initializer = function () {
11   var freeze = getBuiltIn('Object', 'freeze');
12   return freeze ? freeze(create(null)) : create(null);
13 };
14
15 // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
16 $({ global: true }, {
17   compositeKey: function compositeKey() {
18     return apply(getCompositeKeyNode, Object, arguments).get('object', initializer);
19   }
20 });