debian-mirror-gitlab/core-js/es/regexp/replace.js
2019-09-25 13:30:05 +05:30

8 lines
267 B
JavaScript

require('../../modules/es.string.replace');
var wellKnownSymbol = require('../../internals/well-known-symbol');
var REPLACE = wellKnownSymbol('replace');
module.exports = function (it, str, replacer) {
return RegExp.prototype[REPLACE].call(it, str, replacer);
};