match.js 334 B

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