Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null.
I have use the same code other places, same array but never got this error. I dont know why am having this error here.
this.addEventListener("message",function(e){
importScripts('test.js');
var object=e.data;
object=JSON.parse(object);
mArray=object.array;
var test=new test();
for (var y=0;y<8;y++){
for (var x=0;x<4;x++){
word="" + mArray[y][x]+ mArray[y][x+1] + mArray[y][x+2] + mArray[y][x+3] + mArray[y][x+4];
var object={test:word}
this.postMessage(JSON.stringify(object));
}
}