refactor: tests for tags

This commit is contained in:
harttle
2016-09-26 21:52:06 +08:00
parent afca74b238
commit ddc17a6b93
27 changed files with 724 additions and 408 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
const lexical = require('./lexical.js');
const error = require('./error.js');
const ParseError = require('./error.js').ParseError;
module.exports = function(Tag, Filter) {
@@ -60,7 +59,7 @@ module.exports = function(Tag, Filter) {
return token;
}
} catch (e) {
throw new ParseError(e.message, token.input, token.line, e.stack);
throw new ParseError(e.message, token.input, token.line);
}
}