ss
jiangping
2025-06-19 1c7a34a34497107eb5bb4501bfd7ee0b72e5c9f7
1
2
3
4
5
6
7
8
9
'use strict';
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var flags = require('../regexp/flags');
 
var RegExpPrototype = RegExp.prototype;
 
module.exports = function (it) {
  return (it === RegExpPrototype || isPrototypeOf(RegExpPrototype, it)) ? flags(it) : it.flags;
};