blob: 4c5956d574adaa9382d0ebe4b490fcb12bd56467 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description('Tests that declaring a const "location" variable in a worker does not throw.');
jsTestIsAsync = true;
function runTest() {
var worker = new Worker('resources/worker-const-location.js');
worker.onmessage = function(event) {
if (event.data == 'DONE')
finishJSTest();
else
debug(event.data);
}
worker.postMessage('');
}
window.onload = runTest;
</script>
<script src="../../resources/js-test-post.js"></script>