new version of extend
This commit is contained in:
parent
f2eeb7664e
commit
b37a8d2f32
|
@ -25,6 +25,7 @@ var traverseNode = function(parent, errorDefinition) {
|
|||
if (errorDefinition.errors) {
|
||||
childDefinitions(NodeError, errorDefinition.errors);
|
||||
}
|
||||
return NodeError;
|
||||
};
|
||||
|
||||
/* jshint latedef: false */
|
||||
|
@ -56,6 +57,5 @@ traverseRoot(bitcore.Error, data);
|
|||
module.exports = bitcore.Error;
|
||||
|
||||
module.exports.extend = function(spec) {
|
||||
traverseNode(bitcore.Error, spec);
|
||||
return bitcore.Error;
|
||||
return traverseNode(bitcore.Error, spec);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue