1 onerror = function(message, url, lineno)
3 if (url != location.href)
4 postMessage("FAIL: Bad location. Actual: " + url + " Expected: " + location.href);
5 splitUrl = url.split('/');
6 postMessage("PASS: onerror in worker context invoked for a script that has script error '" + message + "' at line " + lineno + " in " + splitUrl[splitUrl.length - 1]);