my javascript code stop executing when I try to access the length property from my passed array.
var arrParams = getParams(url);
var strRef = getRef(arrParams);
function getRef(pv_arrParams)
{
portFromCS.postMessage({greeting: 'before .length'});
portFromCS.postMessage({greeting: pv_arrParams.length}); <- no log
.
.
.
}
the array is not null or empty. When I debug its works fine but not otherwise.
edit: here is an example. Its a Firefox addon https://www.file-upload.net/download-12913625/example.rar.html
so when I debug its not empty or undefined: