blob: 4e058d9c905e2995bd194ec5e8305746cd2c7f1b [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,
error: error
return false;
} = 0;
description("This tests that returning true from a page-level handler suppresses the exception.");
message: "Uncaught ReferenceError: foo is not defined",
filename: "[blob: URL]",
lineno: 13,
colno: 9,
}, true);