debian-mirror-gitlab/core-js/es/regexp/replace.js

9 lines
267 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
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);
};