Travis build: 1611

This commit is contained in:
30secondsofcode
2018-02-09 07:06:16 +00:00
parent 0935c4ddf5
commit d9f3bfd8e2
2 changed files with 2 additions and 4 deletions

View File

@ -3275,9 +3275,8 @@ Return a promise, listening for `onmessage` and `onerror` events and resolving t
```js
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'
})
);