ErrorEvent.js (292B)
1 onmessage = function(evt) 2 { 3 throw(new Error(evt.data)); 4 } 5 6 onerror = function(message, location, line, col) 7 { 8 postMessage( {"message": message, "filename": location, "lineno": line, "colno": col} ); 9 return false; // "not handled" so the error propagates up to the Worker object 10 }