function testWithoutAllocation(i) {if (!this.vec) {
doesn't this mean you have to call this function with new?? Otherwise this is undefined?
new
this