You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
388 B
9 lines
388 B
2 years ago
|
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);
|
||
|
};
|