Skip to content

Commit

Permalink
fix(runPipelineEmscripten): Copy args before passing to callMain
Browse files Browse the repository at this point in the history
Will insert 'this.program' repeatedly into the start of the array.
  • Loading branch information
thewtex committed Aug 31, 2022
1 parent df5aa7f commit 6f0a85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipeline/internal/runPipelineEmscripten.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function runPipelineEmscripten (pipelineModule: PipelineEmscriptenModule, args:
pipelineModule.resetModuleStderr()
let returnValue = 0
try {
returnValue = pipelineModule.callMain(args)
returnValue = pipelineModule.callMain(args.slice())
} catch (exception) {
// Note: Module must be built with CMAKE_BUILD_TYPE set to Debug.
// e.g.: itk-wasm build my/project -- -DCMAKE_BUILD_TYPE:STRING=Debug
Expand Down

0 comments on commit 6f0a85f

Please sign in to comment.