Sign in
cobalt
/
cobalt
/
a3dd835b53c74ec0f3e791c01fbcde33bbf26c6d
/
.
/
src
/
third_party
/
web_platform_tests
/
workers
/
support
/
ImportScriptsNetworkErr.js
blob: 8179c8b10013192ae614a74beafca4bcdaa7f6ea [
file
] [
log
] [
blame
]
var
result
=
"Fail"
;
try
{
importScripts
(
"NonExistentFile.js"
);
}
catch
(
ex
)
{
if
(
ex
.
code
!=
null
&&
ex
.
code
==
ex
.
NETWORK_ERR
)
{
result
=
"Pass"
;
}
}
postMessage
(
result
);