diff --git a/src/agent.ts b/src/agent.ts index f74f430..d5a5ce3 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -3,7 +3,7 @@ rpc.exports = { const bootstrapperModule = Module.load(bootstrapper); const functionPointer = bootstrapperModule.getExportByName("bootstrapper_load_assembly"); - const bootstrapper_load_assembly = new NativeFunction(functionPointer, "uint32", ["pointer", "pointer", "pointer", "pointer"]); + const bootstrapper_load_assembly = new NativeFunction(functionPointer, "uint32", ["pointer", "pointer", "pointer", "pointer"], { exceptions: "propagate" }); const allocUtfString = Process.platform === "windows" ? Memory.allocUtf16String : Memory.allocUtf8String; return bootstrapper_load_assembly(