Liferay.Loader.define("journal-web$codemirror@5.65.2/addon/tern/worker",["module","exports","require"],(function(e,r,t){window;{var n;this.onmessage=function(e){var r=e.data;switch(r.type){case"init":return function startServer(e,r,t){t&&importScripts.apply(null,t);n=new tern.Server({getFile:getFile,async:!0,defs:e,plugins:r})}(r.defs,r.plugins,r.scripts);case"add":return n.addFile(r.name,r.text);case"del":return n.delFile(r.name);case"req":return n.request(r.body,(function(e,t){postMessage({id:r.id,body:t,err:e&&String(e)})}));case"getFile":var t=i[r.id];return delete i[r.id],t(r.err,r.text);default:throw new Error("Unknown message type: "+r.type)}};var s=0,i={};function getFile(e,r){postMessage({type:"getFile",name:e,id:++s}),i[s]=r}this.console={log:function(e){postMessage({type:"debug",message:e})}}}}));
//# sourceMappingURL=worker.js.map