22b9cece5bb605bb220e5b1c27884492c396b5b0ef3a57a4541930dfe5135a4bed967f4fd90625fc62b712b38dd5e3483fe4d018e27793f8db21a424b1a5a4 299 B

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