search.js 352 B

1234567891011
  1. 'use strict';
  2. require('../../modules/es.regexp.exec');
  3. require('../../modules/es.string.search');
  4. var call = require('../../internals/function-call');
  5. var wellKnownSymbol = require('../../internals/well-known-symbol');
  6. var SEARCH = wellKnownSymbol('search');
  7. module.exports = function (it, str) {
  8. return call(RegExp.prototype[SEARCH], it, str);
  9. };