massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.composite-symbol.js
index 06d1b229f91d01921124d0556aecb25f2b521b8d..ed314c0efa85f0301da190e800e6344ab0123757 100644 (file)
@@ -1,11 +1,12 @@
 var $ = require('../internals/export');
 var getCompositeKeyNode = require('../internals/composite-key');
 var getBuiltIn = require('../internals/get-built-in');
+var apply = require('../internals/function-apply');
 
 // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
 $({ global: true }, {
   compositeSymbol: function compositeSymbol() {
-    if (arguments.length === 1 && typeof arguments[0] === 'string') return getBuiltIn('Symbol')['for'](arguments[0]);
-    return getCompositeKeyNode.apply(null, arguments).get('symbol', getBuiltIn('Symbol'));
+    if (arguments.length == 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]);
+    return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol'));
   }
 });