1 2 3 4 5 6 7 8
importScripts('./lzma_enc_for_importScripts.js'); (async()=>{ const fn=await lzma; onmessage=async msg=>{ postMessage(fn(msg.data.bytes,msg.data.level,msg.data.dictionary_power_of_two)); } postMessage('ready'); })();