源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import assert from "node:assert/strict"
|
||||
import { readFileSync } from "node:fs"
|
||||
import test from "node:test"
|
||||
|
||||
test("local development child processes explicitly disable shell execution", () => {
|
||||
const source = readFileSync(new URL("./dev-local.mjs", import.meta.url), "utf8")
|
||||
|
||||
assert.equal(source.match(/\bspawn\(/g)?.length, 2)
|
||||
assert.equal(source.match(/shell: false/g)?.length, 2)
|
||||
})
|
||||
Reference in New Issue
Block a user