Sign in
webkit
/
WebKit
/
a659cc2560ef03ca74fc359443f5a95cd40bafd1
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
secure-contexts
/
support
/
parent-dedicated-worker-script.js
blob: 2b6743238446ce8661948b752db10f0d52c040cc [
file
] [
log
] [
blame
]
// If nested workers aren't supported, punt:
if
(
typeof
Worker
!=
"undefined"
)
{
var
w
=
new
Worker
(
"dedicated-worker-script.js"
);
w
.
onmessage
=
function
(
e
)
{
postMessage
(
e
.
data
);
}
}
else
{
postMessage
(
"Nested workers not supported."
);
}