MCPcopy Create free account
hub / github.com/Wscats/chrome-devtools-cli / processInWebWorker

Function processInWebWorker

src/__tests__/MediaStreamRecorder.js:2265–2275  ·  view source on GitHub ↗
(_function)

Source from the content-addressed store, hash-verified

2263 };
2264
2265 function processInWebWorker(_function) {
2266 var blob = URL.createObjectURL(new Blob([_function.toString(),
2267 'this.onmessage = function (e) {' + _function.name + '(e.data);}'
2268 ], {
2269 type: 'application/javascript'
2270 }));
2271
2272 var worker = new Worker(blob);
2273 URL.revokeObjectURL(blob);
2274 return worker;
2275 }
2276
2277 function whammyInWebWorker(frames) {
2278 function ArrayToWebM(frames) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected