import { SandboxedRuntimeLite } from '../../runtime/SandboxedRuntimeLite.js';
import { assignRuntime, startRuntime } from '../RuntimeLiteWorker.js';
async function main() {
    // to-do: pull in https://github.com/stephenh/ts-proto/issues/732 to fork and
    // use plain globalThis here and everywhere else in runtime-lite.
    const box = (globalThis.self ?? globalThis);
    const runtime = new SandboxedRuntimeLite();
    assignRuntime(box, runtime);
    await runtime.init();
    startRuntime(box);
}
main().catch(console.error);
