Sign in
webkit
/
WebKit
/
77b63b8e6a326c64f4e14dec31520d24b21e7c7f
/
.
/
LayoutTests
/
fast
/
workers
/
resources
/
worker-const-location.js
blob: 78e46a1e72f45b8707e18150787c83ca4b2dbcbc [
file
] [
log
] [
blame
]
const
location
=
2
;
// Should not throw.
function
log
(
message
)
{
postMessage
(
message
);
}
onmessage
=
function
(
event
)
{
if
(
location
==
2
)
log
(
"SUCCESS: location was properly shadowed"
);
else
log
(
"FAIL: location was not shadowed"
);
log
(
"DONE"
);
}