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.
10 lines
402 B
10 lines
402 B
5 months ago
|
'use strict';
|
||
|
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);
|
||
|
};
|