The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(process-statics): cover shift operators in array length expressions
Steven Enamakel31c4fb0133f5
diff --git a/scripts/__tests__/process-statics.test.mjs b/scripts/__tests__/process-statics.test.mjsindex 6a312df1e0..9279d30ec9 100644--- a/scripts/__tests__/process-statics.test.mjs+++ b/scripts/__tests__/process-statics.test.mjs@@ -127,6 +127,9 @@ test("comparisons and shifts inside const blocks are not generic brackets", () ="Wrapper<{1<<2},{1<2}>",);});+test("array length expressions do not treat shifts as generic brackets", () => {+ assert.equal(scan("static X: [Option<u8>; 1 << 2] = x;")[0].type, "[Option<u8>;1<<2]");+});test("repository scan reads the merge base, enforces records, and fails without history", () => {const root = mkdtempSync(join(tmpdir(), "process-statics-"));const git = (...args) =>