blob: c3c145d4bb15a465088246bbacaad7dde6cf0572 [file] [log] [blame]
<!DOCTYPE html>
<title> WorkerGlobalScope onerror event handler argument: line </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
var worker = new Worker('./support/ErrorEvent.js');
worker.onmessage = t.step_func_done(function(e) {
assert_equals(e.data.lineno, 3);
});
worker.postMessage("Error Message");
});
</script>