<p dir="auto"><del>Good first issue.</del></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="throw new Error(&quot;abcd&quot;);"><pre class="notranslate"><span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">Error</span><span class="pl-kos">(</span><span class="pl-s">"abcd"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">gives the output</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29990554/79696348-0d596100-8274-11ea-8afc-1f55ab2fb5e1.png"><img src="https://user-images.githubusercontent.com/29990554/79696348-0d596100-8274-11ea-8afc-1f55ab2fb5e1.png" width="420" style="max-width: 100%;"></a></p>
<p dir="auto">That second line, the "source name" is always the same as the first frame. The line number is written in three places and one of them is invisible here.</p>
<p dir="auto">I'd rather see something like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29990554/79696430-9cff0f80-8274-11ea-92d1-e4acbfe8d9e2.png"><img src="https://user-images.githubusercontent.com/29990554/79696430-9cff0f80-8274-11ea-92d1-e4acbfe8d9e2.png" width="420" style="max-width: 100%;"></a></p>
<h1 dir="auto">Summary</h1>
<p dir="auto">Deno has panicked when run bellow code at interactive mode.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const str = &quot;🌍🤖😸🎉&quot;;
console.log(str.slice(0,3));"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s">"🌍🤖😸🎉"</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-s1">str</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Error message</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@523db2214abf:/# RUST_BACKTRACE=1 deno
Deno 1.21.3
exit using ctrl+d or close()
&gt; const str = &quot;🌍🤖😸🎉&quot;;
undefined
&gt; console.log(str.slice(0,3));
🌍�

============================================================
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 x86_64
Version: 1.21.3
Args: [&quot;deno&quot;]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(&quot;unexpected end of hex escape&quot;, line: 1, column: 113)', /home/runner/work/deno/deno/core/inspector.rs:724:66
stack backtrace:
   0: rust_begin_unwind
             at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
   2: core::result::unwrap_failed
             at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:1690:5
   3: core::result::Result&lt;T,E&gt;::unwrap
   4: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   5: &lt;futures_util::future::select::Select&lt;A,B&gt; as core::future::future::Future&gt;::poll
   6: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   7: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   8: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   9: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  10: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  11: deno::tools::repl::run::{{closure}}
  12: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  13: deno::main::{{closure}}
  14: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  15: deno_runtime::tokio_util::run_basic
  16: deno::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
root@523db2214abf:/#"><pre class="notranslate"><code class="notranslate">root@523db2214abf:/# RUST_BACKTRACE=1 deno
Deno 1.21.3
exit using ctrl+d or close()
&gt; const str = "🌍🤖😸🎉";
undefined
&gt; console.log(str.slice(0,3));
🌍�

============================================================
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 x86_64
Version: 1.21.3
Args: ["deno"]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected end of hex escape", line: 1, column: 113)', /home/runner/work/deno/deno/core/inspector.rs:724:66
stack backtrace:
   0: rust_begin_unwind
             at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
   2: core::result::unwrap_failed
             at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:1690:5
   3: core::result::Result&lt;T,E&gt;::unwrap
   4: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   5: &lt;futures_util::future::select::Select&lt;A,B&gt; as core::future::future::Future&gt;::poll
   6: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   7: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   8: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
   9: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  10: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  11: deno::tools::repl::run::{{closure}}
  12: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  13: deno::main::{{closure}}
  14: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll
  15: deno_runtime::tokio_util::run_basic
  16: deno::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
root@523db2214abf:/#
</code></pre></div>
<p dir="auto">But when I run code from stdin, it looks work fine.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="root@8bf9e7714971:/# deno run - &lt; `tty`
const str = &quot;🌍🤖😸🎉&quot;;
console.log(str.slice(0,3));
🌍�
root@8bf9e7714971:/#"><pre class="notranslate">root@8bf9e7714971:/<span class="pl-c"><span class="pl-c">#</span> deno run - &lt; `tty`</span>
const str = <span class="pl-s"><span class="pl-pds">"</span>🌍🤖😸🎉<span class="pl-pds">"</span></span><span class="pl-k">;</span>
console.log(str.slice(0,3))<span class="pl-k">;</span>
🌍�
root@8bf9e7714971:/<span class="pl-c"><span class="pl-c">#</span></span></pre></div>
<h1 dir="auto">Environments</h1>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="root@8bf9e7714971:/# uname -a
Linux 8bf9e7714971 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 x86_64 GNU/Linux"><pre class="notranslate">root@8bf9e7714971:/<span class="pl-c"><span class="pl-c">#</span> uname -a</span>
Linux 8bf9e7714971 5.10.104-linuxkit <span class="pl-c"><span class="pl-c">#</span>1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 x86_64 GNU/Linux</span></pre></div>