massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / features / map / from.js
index b7d75f907c464f742ee23fd6fe06b6058594c127..c3f7471a450c1b8977e26f69b95deab34b90da7b 100644 (file)
@@ -1,13 +1,16 @@
 'use strict';
+require('../../modules/es.array.iterator');
 require('../../modules/es.map');
 require('../../modules/es.string.iterator');
 require('../../modules/esnext.map.from');
 require('../../modules/web.dom-collections.iterator');
+var call = require('../../internals/function-call');
+var isCallable = require('../../internals/is-callable');
 var path = require('../../internals/path');
 
 var Map = path.Map;
-var mapFrom = Map.from;
+var $from = Map.from;
 
 module.exports = function from(source, mapFn, thisArg) {
-  return mapFrom.call(typeof this === 'function' ? this : Map, source, mapFn, thisArg);
+  return call($from, isCallable(this) ? this : Map, source, mapFn, thisArg);
 };