diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl index 658356cb..4cd338c6 100644 --- a/src/current/compiler/js.xsl +++ b/src/current/compiler/js.xsl @@ -1932,7 +1932,7 @@ input = input || []; // vector or matrix - var i = input.length || 0; + var i = input.length || 1; var ret = []; var value = ( depth === 2 ) ? [ value ] : value;