Infinity-arguments.html (501B)
1 <!doctype html> 2 <title>Infinity as arguments</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script> 6 async_test(t => { 7 const worker = new SharedWorker(Infinity, Infinity); 8 worker.port.onmessage = t.step_func_done(e => { 9 assert_equals(e.data[0], 'Infinity', 'first arg (script name)'); 10 assert_equals(e.data[1], 'Infinity', 'second arg (worker name)'); 11 }); 12 }, 'Test constructing a shared worker with Infinity'); 13 </script>