diff options
Diffstat (limited to 'deps/npm/node_modules/uuid/lib/v35.js')
-rw-r--r-- | deps/npm/node_modules/uuid/lib/v35.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/npm/node_modules/uuid/lib/v35.js b/deps/npm/node_modules/uuid/lib/v35.js index 842c60ea2b..8b066cc5e3 100644 --- a/deps/npm/node_modules/uuid/lib/v35.js +++ b/deps/npm/node_modules/uuid/lib/v35.js @@ -43,7 +43,11 @@ module.exports = function(name, version, hashfunc) { return buf || bytesToUuid(bytes); }; - generateUUID.name = name; + // Function#name is not settable on some platforms (#270) + try { + generateUUID.name = name; + } catch (err) { + } // Pre-defined namespaces, per Appendix C generateUUID.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; |