blob: 95440ca5f937cb645ec8db9ce8037a008b8a7c6e [file] [log] [blame]
<!DOCTYPE html>
window.isOnErrorTest = true;
<script src="../../resources/js-test.js"></script>
<script src="resources/onerror-test.js"></script>
<!-- This script's body will be used to build a Blob URL to use as a Worker. -->
<script id="workerCode" type="text/plain">
onerror = function(message, filename, lineno, colno, error) {
message: message,
filename: filename,
lineno: lineno,
colno: colno
setTimeout(function () { postMessage({ done: true }); }, 0);
return true;
} = 0;
description("Handling an error in the worker should suppress the page-level onerror handler.");
message: "Uncaught ReferenceError: foo is not defined",
filename: "[blob: URL]",
lineno: 13,
colno: 9,