Plato on Github
Report Home
dojo/testsDOH/_base/loader/hostenv_webworkers/worker1.js
Maintainability
58.84
Lines of code
22
Difficulty
6.29
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
// summary: // Test whether Dojo will load inside the webworker. var dojoConfig = { baseUrl: "../../../../../", packages: [{ name: "dojo", location: "dojo" }] }; try{ importScripts("../../../../dojo.js", "console.js"); self.postMessage({ type: "testResult", test: "dojo loaded", value: true }); }catch(e){ self.postMessage({ type: "testResult", test: "dojo loaded", value: false }); }