Permalink
Browse files

Throwing errors for unsupported constructs

  • Loading branch information...
StevenLooman committed Aug 19, 2012
1 parent 910e5f8 commit 0b8d01759c1401e39e443371678b5859a52c606b
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/saxpath.js
View
@@ -74,7 +74,9 @@ SaXPath.prototype._buildState = function(part) {
return new ChildState(axis, name, predicates);
} else if (axis === '//') {
return new SelfOrDescendantState(axis, name, predicates);
- } // XXX:TODO: else { throw new Error('Unsupported axis'); }
+ } else {
+ throw new Error('Unsupported axis');
+ }
};

0 comments on commit 0b8d017

Please sign in to comment.