<h1 dir="auto">Detail</h1>
<p dir="auto">When I run script, Deno always panics.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import $ from &quot;https://deno.land/x/dax@0.17.0/mod.ts&quot;;

const cmds = [];
for (let i = 0; i &lt; 5000; i++) {
  cmds.push($`./target/debug/deno_runtime_example`.text());
}
await Promise.all(cmds);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/x/dax@0.17.0/mod.ts"</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-s1">cmds</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">5000</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-s1">cmds</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-s">`./target/debug/deno_runtime_example`</span><span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">await</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-s1">cmds</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=full deno run -A main.ts

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos aarch64
Version: 1.28.3
Args: [&quot;deno&quot;, &quot;run&quot;, &quot;-A&quot;, &quot;main.ts&quot;]

thread 'main' panicked at 'internal error: entered unreachable code', runtime/errors.rs:61:19
stack backtrace:
   0:        0x101adc7bc - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h2990a6f24ccff6db
   1:        0x101288d7c - core::fmt::write::h91497fd291c8b104
   2:        0x101ab2a24 - std::io::Write::write_fmt::h23fa41342cffacf4
   3:        0x101ae0b94 - std::panicking::default_hook::{{closure}}::hb41cdb784f4c17ac
   4:        0x101ae0858 - std::panicking::default_hook::hdfe992d5fb29a991
   5:        0x1011d2fe8 - deno::setup_panic_hook::{{closure}}::h5e935c84e6e3da4b
   6:        0x101ae10f0 - std::panicking::rust_panic_with_hook::h2eb0e4b718773521
   7:        0x101ae0eb8 - std::panicking::begin_panic_handler::{{closure}}::h06a693206403b4d5
   8:        0x101ae0e4c - std::sys_common::backtrace::__rust_end_short_backtrace::h8998defd518dbcad
   9:        0x101ae0e28 - _rust_begin_unwind
  10:        0x101286f0c - core::panicking::panic_fmt::ha46aa9af97eb193d
  11:        0x101288a5c - core::panicking::panic::h5713e7735cef5fa8
  12:        0x10158348c - deno_runtime::errors::get_io_error_class::h77396f967b032c77
  13:        0x101582fa0 - deno_runtime::errors::get_error_class_name::h42dd95fe507b1825
  14:        0x100fdb3b0 - deno::errors::get_error_class_name::h2a9918ddd642a50a
  15:        0x10131b200 - deno_core::error::to_v8_error::h406ecfc9d61f68bb
  16:        0x10167e340 - deno_runtime::ops::process::op_run::v8_func::h56971477b8014cd2
  17:        0x10167940c - &lt;extern &quot;C&quot; fn(A0) .&gt; R as v8::support::CFnFrom&lt;F&gt;&gt;::mapping::c_fn::h78d0641241932d68"><pre class="notranslate">$ RUST_BACKTRACE=full deno run -A main.ts

============================================================
Deno has panicked. This is a bug <span class="pl-k">in</span> Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var <span class="pl-c1">set</span> and include the backtrace <span class="pl-k">in</span> your report.

Platform: macos aarch64
Version: 1.28.3
Args: [<span class="pl-s"><span class="pl-pds">"</span>deno<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>run<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>-A<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>main.ts<span class="pl-pds">"</span></span>]

thread <span class="pl-s"><span class="pl-pds">'</span>main<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>internal error: entered unreachable code<span class="pl-pds">'</span></span>, runtime/errors.rs:61:19
stack backtrace:
   0:        0x101adc7bc - <span class="pl-k">&lt;</span>std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display<span class="pl-k">&gt;</span>::fmt::h2990a6f24ccff6db
   1:        0x101288d7c - core::fmt::write::h91497fd291c8b104
   2:        0x101ab2a24 - std::io::Write::write_fmt::h23fa41342cffacf4
   3:        0x101ae0b94 - std::panicking::default_hook::{{closure}}::hb41cdb784f4c17ac
   4:        0x101ae0858 - std::panicking::default_hook::hdfe992d5fb29a991
   5:        0x1011d2fe8 - deno::setup_panic_hook::{{closure}}::h5e935c84e6e3da4b
   6:        0x101ae10f0 - std::panicking::rust_panic_with_hook::h2eb0e4b718773521
   7:        0x101ae0eb8 - std::panicking::begin_panic_handler::{{closure}}::h06a693206403b4d5
   8:        0x101ae0e4c - std::sys_common::backtrace::__rust_end_short_backtrace::h8998defd518dbcad
   9:        0x101ae0e28 - _rust_begin_unwind
  10:        0x101286f0c - core::panicking::panic_fmt::ha46aa9af97eb193d
  11:        0x101288a5c - core::panicking::panic::h5713e7735cef5fa8
  12:        0x10158348c - deno_runtime::errors::get_io_error_class::h77396f967b032c77
  13:        0x101582fa0 - deno_runtime::errors::get_error_class_name::h42dd95fe507b1825
  14:        0x100fdb3b0 - deno::errors::get_error_class_name::h2a9918ddd642a50a
  15:        0x10131b200 - deno_core::error::to_v8_error::h406ecfc9d61f68bb
  16:        0x10167e340 - deno_runtime::ops::process::op_run::v8_func::h56971477b8014cd2
  17:        0x10167940c - <span class="pl-k">&lt;</span>extern <span class="pl-s"><span class="pl-pds">"</span>C<span class="pl-pds">"</span></span> fn(A0) .<span class="pl-k">&gt;</span> R as v8::support::CFnFrom<span class="pl-k">&lt;</span>F<span class="pl-k">&gt;&gt;</span>::mapping::c_fn::h78d0641241932d68</pre></div>
<h2 dir="auto">How to reproduce</h2>
<p dir="auto">At first, please clone this repository.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/skanehira/deno_runtime_example
$ cargo build"><pre class="notranslate">$ git clone https://github.com/skanehira/deno_runtime_example
$ cargo build</pre></div>
<p dir="auto">And add this script at project root directory.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import $ from &quot;https://deno.land/x/dax@0.17.0/mod.ts&quot;;

const cmds = [];
for (let i = 0; i &lt; 5000; i++) {
  cmds.push($`./target/debug/deno_runtime_example`.text());
}
await Promise.all(cmds);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/x/dax@0.17.0/mod.ts"</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-s1">cmds</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">5000</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-s1">cmds</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-s">`./target/debug/deno_runtime_example`</span><span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">await</span> <span class="pl-smi">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-s1">cmds</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Run script and we got panic.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run -A main.ts"><pre class="notranslate">deno run -A main.ts</pre></div>
<p dir="auto">How to use http2 protocol client and server in deno?</p>