cred: isolate scripts in WASI and move RSA signing to AWS-LC

This commit is contained in:
2026-11-06 22:22:49 +00:00
parent 5b3e1393f5
commit 86c5d8a4e4
217 changed files with 155392 additions and 391 deletions
@@ -0,0 +1,16 @@
import {assert} from "./assert.js"
let caught = 0
for (let i = 1; i <= 32; i++) {
const prefix = "(:?".repeat(i)
const suffix = "|)+".repeat(i)
const between = "(?:a|)+"
try {
new RegExp(prefix + between + suffix)
} catch (e) {
assert(e instanceof SyntaxError)
assert(e.message, "out of memory")
caught++
}
}
assert(caught, 12) // subject to change