We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c474219 commit e6cc7f2Copy full SHA for e6cc7f2
lib/csscomb.js
@@ -85,11 +85,18 @@ Comb.prototype = {
85
*/
86
processString: function(text, filename) {
87
var tree;
88
+ var string = JSON.stringify;
89
+ if (typeof text === 'undefined') {
90
+ throw new Error('Undefined file content ' + filename + ': ' + string(text));
91
+ }
92
try {
93
tree = gonzales.srcToCSSP(text);
94
} catch (e) {
95
throw new Error('Parsing error at ' + filename + ': ' + e.message);
96
}
97
+ if (typeof tree === 'undefined') {
98
+ throw new Error('Undefined tree at ' + filename + ': ' + string(text) + ' => ' + string(tree));
99
100
tree = this.processTree(tree);
101
return gonzales.csspToSrc(tree);
102
},
0 commit comments