Source code
Revision control
Copy as Markdown
Other Tools
/* Any copyright is dedicated to the Public Domain.
import { _lazyForTestMocking } from "chrome://global/content/ml/MLEngine.worker.mjs";
_lazyForTestMocking.getBackend = async function (_consumer, _wasm, options) {
if (options.modelRevision === "v0.0.0") {
throw new Error("Intentionally failing engine initialization");
}
return {
async run() {
return { ok: true, metrics: {} };
},
};
};