enhancement: decrease dist size

This commit is contained in:
harttle
2016-10-04 22:31:28 +08:00
parent 1e1b6e8cc3
commit 77930e2d20
30 changed files with 2724 additions and 3934 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ module.exports = function(Tag, Filter) {
},
start: function() {
this.trigger('start');
var token;
while (!this.stopRequested && (token = this.tokens.shift())) {
if (this.trigger('token', token)) continue;
if (token.type == 'tag' &&
@@ -59,7 +60,7 @@ module.exports = function(Tag, Filter) {
return token;
}
} catch (e) {
throw new ParseError(e.message, token.input, token.line);
throw new ParseError(e.message, token.input, token.line, e);
}
}