qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/createTaskProcessorWorker.js

2 lines
867 B
JavaScript
Raw Permalink Normal View History

2023-12-17 15:30:40 +08:00
define(["./defaultValue-81eec7ed","./when-422ea0ae"],(function(e,t){"use strict";return function(r){let n;return function(s){const a=s.data,i=[],o={id:a.id,result:void 0,error:void 0};return t.when(function(e,r,n){let s;try{return s=e(r,n),s}catch(e){return t.when.reject(e)}}(r,a.parameters,i)).then((function(e){o.result=e})).otherwise((function(e){e instanceof Error?o.error={name:e.name,message:e.message,stack:e.stack}:o.error=e})).always((function(){e.defined(n)||(n=e.defaultValue(self.webkitPostMessage,self.postMessage)),a.canTransferArrayBuffer||(i.length=0);try{n(o,i)}catch(t){o.result=void 0,o.error=`postMessage failed with error: ${function(t){let r;const n=t.name,s=t.message;r=e.defined(n)&&e.defined(s)?`${n}: ${s}`:t.toString();const a=t.stack;return e.defined(a)&&(r+=`\n${a}`),r}(t)}\n with responseMessage: ${JSON.stringify(o)}`,n(o)}}))}}}));