MCPcopy
hub / github.com/tensorflow/tfjs / str2workerURL

Function str2workerURL

tfjs-core/src/worker_test.ts:21–25  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

19import {expectArraysClose} from './test_util';
20
21const str2workerURL = (str: string): string => {
22 const blob =
23 new Blob([str], {type: 'application/javascript'});
24 return URL.createObjectURL(blob);
25};
26
27// The source code of a web worker.
28const workerTest = `

Callers 1

worker_test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…