diff --git a/lib/stringify/identity.js b/lib/stringify/identity.js index 7e542268..82c9b4fa 100644 --- a/lib/stringify/identity.js +++ b/lib/stringify/identity.js @@ -218,7 +218,7 @@ Compiler.prototype['custom-media'] = function(node){ Compiler.prototype.rule = function(node){ var indent = this.indent(); var decls = node.declarations; - if (!decls.length) return ''; + if (!decls || !decls.length) return ''; return this.emit(node.selectors.map(function(s){ return indent + s }).join(',\n'), node.position) + this.emit(' {\n')