1 | ;
|
2 | var makeBuiltIn = require('../internals/make-built-in');
|
3 | var defineProperty = require('../internals/object-define-property');
|
4 |
|
5 | module.exports = function (target, name, descriptor) {
|
6 | if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
7 | if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
8 | return defineProperty.f(target, name, descriptor);
|
9 | };
|