<p dir="auto">As you can see the CI was passing correctly before.</p>
<p dir="auto"><a href="https://github.com/UltiRequiem/eloquent-javascript/commits/main">https://github.com/UltiRequiem/eloquent-javascript/commits/main</a></p>
<p dir="auto">But since <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/UltiRequiem/eloquent-javascript/commit/a5f766e32333a6a7258d3a6d68717c03064acbc4/hovercard" href="https://github.com/UltiRequiem/eloquent-javascript/commit/a5f766e32333a6a7258d3a6d68717c03064acbc4">UltiRequiem/eloquent-javascript@<tt>a5f766e</tt></a></p>
<p dir="auto">While creating code coverage I'm getting this errors:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno test --coverage=./cov"><pre class="notranslate">deno <span class="pl-c1">test</span> --coverage=./cov</pre></div>
<blockquote>
<p dir="auto">This step works as expected</p>
</blockquote>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno coverage --unstable --lcov ./cov &gt; cov.lcov"><pre class="notranslate">deno coverage --unstable --lcov ./cov <span class="pl-k">&gt;</span> cov.lcov</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="============================================================
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: linux x8[6](https://github.com/UltiRequiem/eloquent-javascript/runs/6168539434?check_suite_focus=true#step:8:6)_64
Version: 1.21.0
Args: [&quot;deno&quot;, &quot;coverage&quot;, &quot;--unstable&quot;, &quot;--lcov&quot;, &quot;./cov&quot;]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadJson(Error(&quot;invalid unicode code point&quot;, line: 1, column: 2043))', cli/tools/coverage/mod.rs:1[7](https://github.com/UltiRequiem/eloquent-javascript/runs/6168539434?check_suite_focus=true#step:8:7)5:57
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"><pre class="notranslate"><code class="notranslate">============================================================
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: linux x8[6](https://github.com/UltiRequiem/eloquent-javascript/runs/6168539434?check_suite_focus=true#step:8:6)_64
Version: 1.21.0
Args: ["deno", "coverage", "--unstable", "--lcov", "./cov"]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadJson(Error("invalid unicode code point", line: 1, column: 2043))', cli/tools/coverage/mod.rs:1[7](https://github.com/UltiRequiem/eloquent-javascript/runs/6168539434?check_suite_focus=true#step:8:7)5:57
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</code></pre></div>
<p dir="auto">But as far I can see on <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/UltiRequiem/eloquent-javascript/commit/a5f766e32333a6a7258d3a6d68717c03064acbc4/hovercard" href="https://github.com/UltiRequiem/eloquent-javascript/commit/a5f766e32333a6a7258d3a6d68717c03064acbc4">UltiRequiem/eloquent-javascript@<tt>a5f766e</tt></a> there isn't any invalid unicode?</p>
<p dir="auto">You can see it here too 👇🏽<br>
<a href="https://github.com/UltiRequiem/eloquent-javascript/runs/6168539434?check_suite_focus=true">https://github.com/UltiRequiem/eloquent-javascript/runs/6168539434?check_suite_focus=true</a></p>
<p dir="auto">Hi, I am having an issue where the output of <code class="notranslate">deno coverage</code> appears inaccurate. I was able to narrow it down to a minimal example; instructions below. I hope it is reproducible. The problem goes away if the emojis or the unused function <code class="notranslate">h</code> are removed. Removing a single emoji removes line 2 from the coverage report, but still inaccurately keeps line 3. I have not tested it with other emojis <g-emoji class="g-emoji" alias="relaxed" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/263a.png">☺️</g-emoji></p>
<p dir="auto">This is the <code class="notranslate">mod.ts</code> file:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default function () {
  return &quot;📣❓&quot;;
}

function h() {}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-k">return</span> <span class="pl-s">"📣❓"</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-k">function</span> <span class="pl-en">h</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">This is the <code class="notranslate">mod_test.ts</code> file:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import f from &quot;./mod.ts&quot;;

Deno.test(&quot;test&quot;, () =&gt; {
  f()
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">f</span> <span class="pl-k">from</span> <span class="pl-s">"./mod.ts"</span><span class="pl-kos">;</span>

<span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"test"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-en">f</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></pre></div>
<p dir="auto">These are the shell commands:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno test --coverage=.cov
deno coverage .cov
rm -rf .cov"><pre class="notranslate">deno <span class="pl-c1">test</span> --coverage=.cov
deno coverage .cov
rm -rf .cov</pre></div>
<p dir="auto">This is the output of <code class="notranslate">deno coverage</code>. As far as I understand it, line 2 and 3 should be covered:</p>
<div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" cover file:///home/mod.ts ... 25.000% (1/4)
   2 |   return &quot;📣❓&quot;;
   3 | }
-----|-----
   5 | function h() {}"><pre class="notranslate"> cover file:///home/mod.ts ... 25.000% (1/4)
   2 |   return "📣❓";
   3 | }
-----|-----
   5 | function h() {}</pre></div>
<p dir="auto">This is the output of <code class="notranslate">deno --version</code>:</p>
<div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno 1.11.0 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.35
typescript 4.3.2"><pre class="notranslate">deno 1.11.0 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.35
typescript 4.3.2</pre></div>