UNPKG

402 BJavaScriptView Raw
1'use strict';
2var makeBuiltIn = require('../internals/make-built-in');
3var defineProperty = require('../internals/object-define-property');
4
5module.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};