.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / flags.js
1 var flags = require('../regexp/flags');
2
3 var RegExpPrototype = RegExp.prototype;
4
5 module.exports = function (it) {
6   return (it === RegExpPrototype || it instanceof RegExp) && !('flags' in it) ? flags(it) : it.flags;
7 };