2017-05-28 00:38:50 +02:00
|
|
|
'use strict';
|
2017-08-14 05:01:11 +02:00
|
|
|
var $export = require('./_export');
|
|
|
|
var toObject = require('./_to-object');
|
|
|
|
var aFunction = require('./_a-function');
|
|
|
|
var $defineProperty = require('./_object-dp');
|
2017-05-28 00:38:50 +02:00
|
|
|
|
|
|
|
// B.2.2.3 Object.prototype.__defineSetter__(P, setter)
|
|
|
|
require('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {
|
2017-08-14 05:01:11 +02:00
|
|
|
__defineSetter__: function __defineSetter__(P, setter) {
|
|
|
|
$defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
|
2017-05-28 00:38:50 +02:00
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|