redefine-all.js 273 B

12345678
  1. var redefine = require('../internals/redefine');
  2. module.exports = function (target, src, options) {
  3. for (var key in src) {
  4. if (options && options.unsafe && target[key]) target[key] = src[key];
  5. else redefine(target, key, src[key], options);
  6. } return target;
  7. };