title: why doesn't NodeJS support String.prototype.replaceAll?
body: <p>This string method exists in browserland, but not in Node. Why not? It's neither brand-new nor exotic.</p>
  <ul>
  <li>replaceAll is part of ECMA-262 <a href="https://tc39.es/ecma262/#sec-string.prototype.replaceall" rel="noreferrer"><sup>src</sup></a></li>
  <li>replaceAll is described in detail on the V8 blog (added in v8.1) <a href="https://v8.dev/features/string-replaceall" rel="noreferrer"><sup>src</sup></a></li>
  <li>NodeJS upgraded to V8 v8.1 with NodeJS v14.0 <a href="https://nodejs.org/en/blog/release/v14.0.0/#update-to-v8-8-1" rel="noreferrer"><sup>src</sup></a></li>
  </ul>
  <p>And yet:</p>
  <pre class="lang-sh prettyprint-override"><code>$ node
  Welcome to Node.js v14.13.1.
  Type &quot;.help&quot; for more information.
  &gt; 'asdf'.replaceAll
  undefined
  </code></pre>
  <p>I'm not asking for polyfills; I can do a regex or loop over single-instance <code>replace</code>. I'm trying to figure out why this seemingly unremarkable feature doesn't exist in NodeJS, even though it seems to be available in just about every other JS environment, and even though all the docs suggest to me that it should exist.</p>