12345678 |
- var makeBuiltIn = require('../internals/make-built-in');
- var defineProperty = require('../internals/object-define-property');
- module.exports = function (target, name, descriptor) {
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
- return defineProperty.f(target, name, descriptor);
- };
|