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