diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 98a2e5d48..1ccd694ee 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -76,7 +76,10 @@ impl SubcommandOutput for Result<(), std::io::Error> { fn spawn_subcommand<F: Future<Output = T> + 'static, T: SubcommandOutput>( f: F, ) -> JoinHandle<Result<i32, AnyError>> { - deno_core::unsync::spawn(f.map(|r| r.output())) + // the boxed_local() is important in order to get windows to not blow the stack in debug + deno_core::unsync::spawn( + async move { f.map(|r| r.output()).await }.boxed_local(), + ) } async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { |