UNPKG

@cesium/engine

Version:

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

17 lines (15 loc) 324 B
self.onmessage = function (event) { const array = event.data.array; const postMessage = self.webkitPostMessage || self.postMessage; try { // transfer the test array back to the caller postMessage( { array: array, }, [array.buffer], ); } catch (e) { postMessage({}); } };