fix(FN-5189): tighten detached spawn allowlist matching
Fusion-Task-Id: FN-5189 Fusion-Task-Lineage: 4caa3f0a-af81-4c60-88e8-de229ed72e08
This commit is contained in:
committed by
gsxdsm
parent
c48f9cbcad
commit
92c5af9d7d
@@ -19,7 +19,7 @@ const detachedSpawnGuard = {
|
||||
}
|
||||
const startLine = node.loc.start.line;
|
||||
const windowStart = Math.max(0, startLine - 3);
|
||||
return sourceCode.lines.slice(windowStart, startLine - 1).some((line) => line.includes(allowlistMarker));
|
||||
return sourceCode.lines.slice(windowStart, startLine).some((line) => line.includes(allowlistMarker));
|
||||
}
|
||||
|
||||
function isSpawnCall(node) {
|
||||
|
||||
Reference in New Issue
Block a user