<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="% deno
Deno 1.18.0
exit using ctrl+d or close()
&gt; &quot;😂&quot;[0]
Uncaught &quot;Unterminated string literal&quot;"><pre class="notranslate">% <span class="pl-s1">deno</span>
<span class="pl-c1">Deno 1.18.0</span>
<span class="pl-c1">exit using ctrl+d or close()</span>
&gt; <span class="pl-s1"><span class="pl-s"><span class="pl-pds">"</span>😂<span class="pl-pds">"</span></span>[0]</span>
<span class="pl-c1">Uncaught "Unterminated string literal"</span></pre></div>
<p dir="auto">I suggest printing the escaped value, <code class="notranslate">"\uD83D"</code>, like Chromium.</p>
<p dir="auto">At the moment Deno.args is <code class="notranslate">string[]</code>, but doesn't work like an array:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; Deno.args.pop()
Uncaught TypeError: Cannot assign to read only property 'length' of object '[object Array]'
    at Array.pop (&lt;anonymous&gt;)
    at &lt;anonymous&gt;:2:11
&gt; Deno.args[0] = 'x'
Uncaught TypeError: Cannot add property 0, object is not extensible
    at &lt;anonymous&gt;:2:14"><pre class="notranslate"><code class="notranslate">&gt; Deno.args.pop()
Uncaught TypeError: Cannot assign to read only property 'length' of object '[object Array]'
    at Array.pop (&lt;anonymous&gt;)
    at &lt;anonymous&gt;:2:11
&gt; Deno.args[0] = 'x'
Uncaught TypeError: Cannot add property 0, object is not extensible
    at &lt;anonymous&gt;:2:14
</code></pre></div>