JavaScript generator tries to access it with array access operator[], even if it's not a JavaScript array.
Why it doesn't convert to a function call?
var starling_utils_VertexData = function(numVertices,premultipliedAlpha) {
...
this.mRawData = new lime_utils_Float32Array(0);
...
};
...
this.mRawData[targetIndex++] = rawData[i];
...
this.mRawData is JavaScript Object, not an array.
Since JavaScript does not support operator overloading, it doesn't make sense to access it with array index operator.
This code runs, but it just adds objects to this.mRawData. It doesn't change the content of lime's typed array.
I tried to compile latest version of Haxe to see whether this problem is fixed.
I had to remove "native" from TARGET_FLAGS to compile development version.
Even after that, compile failed with this message. What does it mean??
File "
gencs.ml", line 3127, characters 22-31:
Error: The record type IlData.ilfield has no field fconstant