define-built-ins.js 304 B

123456789
  1. 'use strict';
  2. var defineBuiltIn = require('../internals/define-built-in');
  3. module.exports = function (target, src, options) {
  4. for (var key in src) {
  5. if (options && options.unsafe && target[key]) target[key] = src[key];
  6. else defineBuiltIn(target, key, src[key], options);
  7. } return target;
  8. };