Support ignored functions and interesting modules

This commit is contained in:
momo5502
2025-08-10 12:43:49 +02:00
parent f9cee1837c
commit 832570edda

View File

@@ -6,6 +6,8 @@ export interface Settings {
persist: boolean;
execAccess: boolean;
wasm64: boolean;
ignoredFunctions: string[];
interestingModules: string[];
}
export function createDefaultSettings(): Settings {
@@ -17,6 +19,8 @@ export function createDefaultSettings(): Settings {
persist: false,
execAccess: true,
wasm64: false,
ignoredFunctions: [],
interestingModules: [],
};
}
@@ -69,5 +73,15 @@ export function translateSettings(settings: Settings): string[] {
switches.push("-x");
}
settings.ignoredFunctions.forEach((f) => {
switches.push("-i");
switches.push(f);
});
settings.interestingModules.forEach((m) => {
switches.push("-m");
switches.push(m);
});
return switches;
}