Skip to content

Commit 6880eb4

Browse files
sirtimidclaude
andcommitted
fix(kernel-utils): restore definite-assignment assertion for releaseLock
The build tsconfig (with strict mode) requires the `!` assertion on `releaseLock` since TypeScript cannot verify that the Promise constructor callback runs synchronously. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 25e7fe2 commit 6880eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/kernel-utils/src/vite-plugins/bundle-vat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function bundleVat(sourcePath: string): Promise<VatBundle> {
7474
// Wait for any in-flight build to finish before starting ours, then
7575
// register a slot so the next caller waits for us.
7676
const prevQueue = buildQueue;
77-
let releaseLock: () => void;
77+
let releaseLock!: () => void;
7878
buildQueue = new Promise<void>((resolve) => {
7979
releaseLock = resolve;
8080
});

0 commit comments

Comments
 (0)