match.js 348 B

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