12 lines
290 B
JavaScript
12 lines
290 B
JavaScript
|
var getNative = require('./_getNative');
|
||
|
|
||
|
/* Used to set `toString` methods. */
|
||
|
var defineProperty = (function() {
|
||
|
var func = getNative(Object, 'defineProperty'),
|
||
|
name = getNative.name;
|
||
|
|
||
|
return (name && name.length > 2) ? func : undefined;
|
||
|
}());
|
||
|
|
||
|
module.exports = defineProperty;
|