You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
505 B
JavaScript
13 lines
505 B
JavaScript
5 years ago
|
'use strict';
|
||
|
var $export = require('./_export');
|
||
|
var toObject = require('./_to-object');
|
||
|
var aFunction = require('./_a-function');
|
||
|
var $defineProperty = require('./_object-dp');
|
||
|
|
||
|
// B.2.2.3 Object.prototype.__defineSetter__(P, setter)
|
||
|
require('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {
|
||
|
__defineSetter__: function __defineSetter__(P, setter) {
|
||
|
$defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
|
||
|
}
|
||
|
});
|