summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/reg-exp/#/replace/shim.js
blob: c3e6aebab04cf3189da4563885239a5962efbc76 (plain)
1
2
3
4
5
6
7
8
'use strict';

var validRegExp = require('../../valid-reg-exp');

module.exports = function (string, replaceValue) {
	validRegExp(this);
	return String(string).replace(this, replaceValue);
};