<p dir="auto">deno: 0.13.0<br>
v8: 7.7.200<br>
typescript: 3.5.1</p>
<p dir="auto">Today, I wrote a great replacement for jQuery:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function $(dollarAmount)
{
	const locale = 'en-US';
	const options = { style: 'currency', currency: 'USD' };
	return Intl.NumberFormat(locale, options).format(dollarAmount);
}
$(987654.321); // This should return: '$987,654.32'"><pre class="notranslate"><code class="notranslate">function $(dollarAmount)
{
	const locale = 'en-US';
	const options = { style: 'currency', currency: 'USD' };
	return Intl.NumberFormat(locale, options).format(dollarAmount);
}
$(987654.321); // This should return: '$987,654.32'
</code></pre></div>
<p dir="auto">A you can see, it is the most sensible use of the "$" character, as a function name, that has ever been written in the history of javascript.</p>
<p dir="auto">The only issue is, when I run this code in Deno, I get this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ReferenceError: Intl is not defined
► &lt;unknown&gt;:5:2
    at $ (&lt;unknown&gt;:5:2)
    at &lt;unknown&gt;:7:1
    at evaluate (js/repl.ts:87:34)
    at replLoop (js/repl.ts:145:13)"><pre class="notranslate"><code class="notranslate">error: Uncaught ReferenceError: Intl is not defined
► &lt;unknown&gt;:5:2
    at $ (&lt;unknown&gt;:5:2)
    at &lt;unknown&gt;:7:1
    at evaluate (js/repl.ts:87:34)
    at replLoop (js/repl.ts:145:13)
</code></pre></div>
<p dir="auto">As seen in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422116599" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1952" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1952/hovercard" href="https://github.com/denoland/deno/issues/1952">#1952</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405562913" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1636" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1636/hovercard" href="https://github.com/denoland/deno/issues/1636">#1636</a> ICU needs to be added in Deno build.</p>
<p dir="auto">Switching this flag to true maybe: <a href="https://github.com/denoland/deno/blob/master/.gn#L50">https://github.com/denoland/deno/blob/master/.gn#L50</a> ?</p>
<p dir="auto">ref: <a href="https://v8.dev/docs/i18n" rel="nofollow">https://v8.dev/docs/i18n</a></p>