blob: 8179c8b10013192ae614a74beafca4bcdaa7f6ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
var result = "Fail";
try
{
importScripts("NonExistentFile.js");
}
catch(ex)
{
if (ex.code != null && ex.code == ex.NETWORK_ERR)
{
result = "Pass";
}
}
postMessage(result);
|