scope_up(out);
if (ttype->is_map()) {
- out <<
- indent() << "if (" << i << " > 0 ) {" << endl <<
- indent() << " if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {" << endl <<
- indent() << " input.rstack.pop();" << endl <<
- indent() << " }" << endl <<
- indent() << "}" << endl;
+ if (!gen_node_) {
+ out <<
+ indent() << "if (" << i << " > 0 ) {" << endl <<
+ indent() << " if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {" << endl <<
+ indent() << " input.rstack.pop();" << endl <<
+ indent() << " }" << endl <<
+ indent() << "}" << endl;
+ }
generate_deserialize_map_element(out, (t_map*)ttype, prefix);
} else if (ttype->is_set()) {
passed();
});
-/*
- * TypeError: Cannot read property 'length' of undefined
var mapout = {};
for (var i = 0; i < 5; ++i) {
mapout[i] = i-10;
console.log("testMap(", mapout, ") = \n", response);
passed();
});
-*/
/*
* TODO: testSet, testList, testEnum, testTypedef, testMapMap, testInsanity