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