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.
		
		
		
		
		
			
		
			
				
					11 lines
				
				370 B
			
		
		
			
		
	
	
					11 lines
				
				370 B
			| 
											3 years ago
										 | // most Object methods by ES6 should accept primitives
 | ||
|  | var $export = require('./_export'); | ||
|  | var core = require('./_core'); | ||
|  | var fails = require('./_fails'); | ||
|  | module.exports = function (KEY, exec) { | ||
|  |   var fn = (core.Object || {})[KEY] || Object[KEY]; | ||
|  |   var exp = {}; | ||
|  |   exp[KEY] = exec(fn); | ||
|  |   $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); | ||
|  | }; |