From 287189e104fcc777635fec505a1c6f5d0c75dd21 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Thu, 28 Nov 2013 00:19:27 -0800 Subject: - fix for structures generated by manually calling generateStructInfo --- src/runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/runtime.js b/src/runtime.js index dedaf5ea..135e8fba 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -247,7 +247,7 @@ var Runtime = { prev = curr; return curr; }); - if (type.name_[0] === '[') { + if (type.name_ && type.name_[0] === '[') { // arrays have 2 elements, so we get the proper difference. then we scale here. that way we avoid // allocating a potentially huge array for [999999 x i8] etc. type.flatSize = parseInt(type.name_.substr(1))*type.flatSize/2; -- cgit v1.2.3-70-g09d2