Tests for tomorrow

This commit is contained in:
Angelos Chalaris
2018-02-09 13:12:23 +02:00
parent 28eb234927
commit 41f0ae31eb
3 changed files with 922 additions and 937 deletions

View File

@ -1,7 +1,6 @@
const runAsync = fn => {
const blob = `var fn = ${fn.toString()}; postMessage(fn());`;
const worker = new Worker(
URL.createObjectURL(new Blob([blob]), {
URL.createObjectURL(new Blob([`postMessage((${fn})());`]), {
type: 'application/javascript; charset=utf-8'
})
);