8000 Merge pull request #601 from adrianlang/patch-1 · rusongyu/less.js@8864ac6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8864ac6

Browse files
committed
Merge pull request less#601 from adrianlang/patch-1
Make parse error handler more robust
2 parents 222f5e6 + a8802fc commit 8864ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/less/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var less = {
1919

2020
if (callback) {
2121
parser.parse(input, function (e, root) {
22-
callback(e, root.toCSS(options));
22+
callback(e, root && root.toCSS && root.toCSS(options));
2323
});
2424
} else {
2525
ee = new(require('events').EventEmitter);

0 commit comments

Comments
 (0)
0