feat(electron): map static process and IPC boundaries

This commit is contained in:
N0zoM1z0 authored and N0zoM1z0 committed 2026-07-16 07:56:13 +09:00
1 parent 3988a866f1
commit 3fa2304bc7
279 files changed
+7481 -775

No files matched your search

@@ -24,12 +24,32 @@ export const failedJavaScriptStaticAnalysis = (): JavaScriptStaticAnalysis => ({
role_paths: [],
source_map_urls: [],
vendors: [],
electron: {
browser_windows: [],
context_bridge_apis: [],
ipc: [],
sender_validations: [],
utility_processes: [],
native_addon_bindings: [],
},
limitations: [
"JavaScript source could not be parsed; absence of findings is not evidence of absence.",
"JavaScript syntax was parsed as data and was never evaluated.",
],
});
/** Normalize one Babel call/new argument into the inert node shared by inspectors. */
export const argumentNode = (
argument:
| t.Expression
| t.SpreadElement
| t.JSXNamespacedName
| t.ArgumentPlaceholder
| null
| undefined,
): t.Node | undefined =>
argument !== null && t.isNode(argument) ? argument : undefined;
/** Recognize the bounded runtime name for a Webpack/Rspack push call. */
export const chunkRuntime = (call: t.CallExpression): string | undefined => {
if (