3 ms·
> ️ Caveat: the function you pass cannot rely on its surrounding scope, since it is executed in an isolated context. That's a pretty major caveat and makes the
by callumlocke 9y ago
> ️ Caveat: the function you pass cannot rely on its surrounding scope, since it is executed in an isolated context.
That's a pretty major caveat and makes the project's tagline basically false. It's just a hacky way to spawn a Web Worker on the fly by evaluating a string that was made by coercing a local function declaration into a string.