Skip to content

Commit dae12fe

Browse files
pi0claude
andcommitted
test(iron-crypto): accept getRandomValues length error for invalid salt bits
Newer V8 allows the oversized Uint8Array allocation, so the Web Crypto 65,536-byte quota error surfaces instead of "Invalid typed array length". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent debd797 commit dae12fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/iron-crypto.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe(`iron crypto`, () => {
156156
};
157157
await rejects(
158158
Iron.generateKey(password, options),
159-
/Invalid typed array length|Array buffer allocation failed/,
159+
/Invalid typed array length|Array buffer allocation failed|length exceeds/,
160160
);
161161
});
162162
});

0 commit comments

Comments
 (0)