UNPKG

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