X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fmodules%2Fesnext.iterator.map.js;h=4460473676ea9bc892061639bde3951404113eda;hp=054a7d1c78f894909e43b7267f6c54d21b18449d;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/esnext.iterator.map.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/esnext.iterator.map.js index 054a7d1c..44604736 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/esnext.iterator.map.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/esnext.iterator.map.js @@ -1,14 +1,15 @@ 'use strict'; // https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); -var aFunction = require('../internals/a-function'); +var apply = require('../internals/function-apply'); +var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); var createIteratorProxy = require('../internals/iterator-create-proxy'); var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); -var IteratorProxy = createIteratorProxy(function (arg) { +var IteratorProxy = createIteratorProxy(function (args) { var iterator = this.iterator; - var result = anObject(this.next.call(iterator, arg)); + var result = anObject(apply(this.next, iterator, args)); var done = this.done = !!result.done; if (!done) return callWithSafeIterationClosing(iterator, this.mapper, result.value); }); @@ -17,7 +18,7 @@ $({ target: 'Iterator', proto: true, real: true }, { map: function map(mapper) { return new IteratorProxy({ iterator: anObject(this), - mapper: aFunction(mapper) + mapper: aCallable(mapper) }); } });