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.
		
		
		
		
			
				
					18 lines
				
				744 B
			
		
		
			
		
	
	
					18 lines
				
				744 B
			| 
								 
											4 years ago
										 
									 | 
							
								'use strict';
							 | 
						||
| 
								 | 
							
								var $ = require('../internals/export');
							 | 
						||
| 
								 | 
							
								var DESCRIPTORS = require('../internals/descriptors');
							 | 
						||
| 
								 | 
							
								var FORCED = require('../internals/object-prototype-accessors-forced');
							 | 
						||
| 
								 | 
							
								var toObject = require('../internals/to-object');
							 | 
						||
| 
								 | 
							
								var aFunction = require('../internals/a-function');
							 | 
						||
| 
								 | 
							
								var definePropertyModule = require('../internals/object-define-property');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// `Object.prototype.__defineSetter__` method
							 | 
						||
| 
								 | 
							
								// https://tc39.github.io/ecma262/#sec-object.prototype.__defineSetter__
							 | 
						||
| 
								 | 
							
								if (DESCRIPTORS) {
							 | 
						||
| 
								 | 
							
								  $({ target: 'Object', proto: true, forced: FORCED }, {
							 | 
						||
| 
								 | 
							
								    __defineSetter__: function __defineSetter__(P, setter) {
							 | 
						||
| 
								 | 
							
								      definePropertyModule.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  });
							 | 
						||
| 
								 | 
							
								}
							 |