massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / flags.js
index f0b91148e6047241596c18adb2291efcfb326ddb..1601f9e31de6d87d2e0904511c7aaf33669d69ed 100644 (file)
@@ -1,7 +1,8 @@
+var isPrototypeOf = require('../../internals/object-is-prototype-of');
 var flags = require('../regexp/flags');
 
 var RegExpPrototype = RegExp.prototype;
 
 module.exports = function (it) {
-  return (it === RegExpPrototype || it instanceof RegExp) && !('flags' in it) ? flags(it) : it.flags;
+  return (it === RegExpPrototype || isPrototypeOf(RegExpPrototype, it)) ? flags(it) : it.flags;
 };