replace.js 376 B

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