replace.js 362 B

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