massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / features / weak-map / of.js
index 5bdf627e8be4c8cc565db2fe8cb045a197122686..ceb61bc089b01403db84fae5d7129b5a752d8bd0 100644 (file)
@@ -1,13 +1,14 @@
 'use strict';
-require('../../modules/es.string.iterator');
+require('../../modules/es.array.iterator');
 require('../../modules/es.weak-map');
 require('../../modules/esnext.weak-map.of');
-require('../../modules/web.dom-collections.iterator');
 var path = require('../../internals/path');
+var apply = require('../../internals/function-apply');
+var isCallable = require('../../internals/is-callable');
 
 var WeakMap = path.WeakMap;
 var weakMapOf = WeakMap.of;
 
 module.exports = function of() {
-  return weakMapOf.apply(typeof this === 'function' ? this : WeakMap, arguments);
+  return apply(weakMapOf, isCallable(this) ? this : WeakMap, arguments);
 };