mirror of https://github.com/lukechilds/node.git
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.
12 lines
290 B
12 lines
290 B
9 years ago
|
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;
|