fix error reporting when index == 0

This commit is contained in:
Alexis Sellier
2011-12-16 17:40:56 +01:00
parent d1cb4aab97
commit 3e31cc17f0

View File

@@ -43,7 +43,7 @@ var less = {
if (options.silent) { return }
if (!ctx.index) {
if (!ctx.hasOwnProperty('index')) {
return sys.error(ctx.stack || ctx.message);
}