Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-01-30 10:28:28 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-01-30 13:45:17 -0500
commit01a420fd812210bb0554dc5e42f53fbd0d72ca71 (patch)
tree06465efd51972edbbad8ec1208c8b92e52404af5 /src
parenta985cf1f23a734df6312aa67f06abaca3b2b276d (diff)
downloadtame-01a420fd812210bb0554dc5e42f53fbd0d72ca71.tar.gz
tame-01a420fd812210bb0554dc5e42f53fbd0d72ca71.tar.bz2
tame-01a420fd812210bb0554dc5e42f53fbd0d72ca71.zip
Revert "set_default: Allow empty vectors"
I need to revert this for now because it breaks YAML test cases. The proper fix is a more expressive type system with dependent types that would allow it to know the proper number of indexes to initialize relative to other inputs. I wanted to implement this anyway to help catch iteration-related bugs. I'm tabling this for now, though, since I have other things that I need to work on. This reverts commit 4406cbe553d91fb2244901b7d4218b2831f01213.
Diffstat (limited to 'src')
-rw-r--r--src/current/compiler/js.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl
index 658356c..4cd338c 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;