<p dir="auto">Source: <a href="https://discord.com/channels/684898665143206084/684898665151594506/1022408024725405698" rel="nofollow">https://discord.com/channels/684898665143206084/684898665151594506/1022408024725405698</a></p>
<p dir="auto">The following code throws an error in Deno versions 1.17 and upwards:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { instance, module } = await WebAssembly.instantiateStreaming(
  fetch(&quot;https://wpt.live/wasm/incrementer.wasm&quot;),
);

const increment = instance.exports.increment as (input: number) =&gt; number;
console.log(increment(41));"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> instance<span class="pl-kos">,</span> module <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">WebAssembly</span><span class="pl-kos">.</span><span class="pl-en">instantiateStreaming</span><span class="pl-kos">(</span>
  <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">"https://wpt.live/wasm/incrementer.wasm"</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">const</span> <span class="pl-s1">increment</span> <span class="pl-c1">=</span> <span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-c1">exports</span><span class="pl-kos">.</span><span class="pl-c1">increment</span> <span class="pl-k">as</span> <span class="pl-kos">(</span><span class="pl-s1">input</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">increment</span><span class="pl-kos">(</span><span class="pl-c1">41</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run -A wasm.ts"><pre class="notranslate"><code class="notranslate">deno run -A wasm.ts
</code></pre></div>
<p dir="auto">Deno 1.16:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="42"><pre class="notranslate"><code class="notranslate">42
</code></pre></div>
<p dir="auto">Deno 1.17:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file
    at async Object.pull (deno:ext/fetch/26_fetch.js:104:24)"><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file
    at async Object.pull (deno:ext/fetch/26_fetch.js:104:24)
</code></pre></div>
<p dir="auto">Deno 1.25:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file
    at async Object.pull (deno:ext/fetch/26_fetch.js:119:24)"><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) Error: request or response body error: error reading a body from connection: unexpected end of file
    at async Object.pull (deno:ext/fetch/26_fetch.js:119:24)
</code></pre></div>
<p dir="auto">If I install a program</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno install catj https://deno.land/std/examples/catjson.ts --allow-read"><pre class="notranslate"><code class="notranslate">deno install catj https://deno.land/std/examples/catjson.ts --allow-read
</code></pre></div>
<p dir="auto">I want to be able to use flags like <code class="notranslate">--reload</code> or <code class="notranslate">-L=info</code> with the newly installed program:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="catj --reload"><pre class="notranslate"><code class="notranslate">catj --reload
</code></pre></div>
<p dir="auto">^-- does not work as intended.</p>