massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.iterator.find.js
index 1d65ea43ac78c1fc5772d5a358c7b7f91e95af8e..ee518503094d96ad61c58262a1b617031397f015 100644 (file)
@@ -2,13 +2,13 @@
 // https://github.com/tc39/proposal-iterator-helpers
 var $ = require('../internals/export');
 var iterate = require('../internals/iterate');
-var aFunction = require('../internals/a-function');
+var aCallable = require('../internals/a-callable');
 var anObject = require('../internals/an-object');
 
 $({ target: 'Iterator', proto: true, real: true }, {
   find: function find(fn) {
     anObject(this);
-    aFunction(fn);
+    aCallable(fn);
     return iterate(this, function (value, stop) {
       if (fn(value)) return stop(value);
     }, { IS_ITERATOR: true, INTERRUPTED: true }).result;