massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / fill.js
index 5d0f22be57b8a4c239af39a50903098f475da9d5..ab12656da3040eb44c5af77ac198091d1a9afd9c 100644 (file)
@@ -1,8 +1,9 @@
-var fill = require('../array/virtual/fill');
+var isPrototypeOf = require('../../internals/object-is-prototype-of');
+var method = require('../array/virtual/fill');
 
 var ArrayPrototype = Array.prototype;
 
 module.exports = function (it) {
   var own = it.fill;
-  return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.fill) ? fill : own;
+  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.fill) ? method : own;
 };