massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.iterator.as-indexed-pairs.js
index fb3bf857bdc0509a7dd26f5822a6cd66b3a6e4f9..4c2d00e20a72fbf70c0335626fca55d62ea1cbc9 100644 (file)
@@ -1,11 +1,12 @@
 'use strict';
 // https://github.com/tc39/proposal-iterator-helpers
 var $ = require('../internals/export');
+var apply = require('../internals/function-apply');
 var anObject = require('../internals/an-object');
 var createIteratorProxy = require('../internals/iterator-create-proxy');
 
-var IteratorProxy = createIteratorProxy(function (arg) {
-  var result = anObject(this.next.call(this.iterator, arg));
+var IteratorProxy = createIteratorProxy(function (args) {
+  var result = anObject(apply(this.next, this.iterator, args));
   var done = this.done = !!result.done;
   if (!done) return [this.index++, result.value];
 });