mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
417 B
JavaScript
16 lines
417 B
JavaScript
addEventListener("error", function(e) {
|
|
var obj = {};
|
|
for (var prop of ["message", "filename", "lineno"]) {
|
|
obj[prop] = e[prop]
|
|
}
|
|
obj.type = "event";
|
|
postMessage(obj);
|
|
});
|
|
onerror = function(message, filename, lineno) {
|
|
var obj = { message: message, filename: filename, lineno: lineno,
|
|
type: "callback" }
|
|
postMessage(obj);
|
|
return false;
|
|
}
|
|
throw new Error("workerhello");
|