UNPKG

cesium

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

20 lines (17 loc) 552 B
// make sure self is defined so that the Dojo build can evaluate this file without crashing. if (typeof self === 'undefined') { self = {}; //eslint-disable-line no-implicit-globals, no-global-assign } self.onmessage = function(event) { 'use strict'; var array = event.data.array; var postMessage = self.webkitPostMessage || self.postMessage; try { // transfer the test array back to the caller postMessage({ array : array }, [array.buffer]); } catch (e) { postMessage({}); } };