mikemaccana
mikemaccana

Reputation: 123258

What version of JS / ES do CloudFlare workers use?

What version of JS/ES do CloudFlare workers use?

I want to be able to use modern JS like string.replaceAll() but haven't been able to find versioning info in the official docs

Upvotes: 1

Views: 276

Answers (1)

Kenton Varda
Kenton Varda

Reputation: 45191

Cloudflare Workers always uses at least the version of V8 that is current in Google Chrome's stable channel. (Actually, it usually tracks Chrome's beta channel, but that's not guaranteed.)

This is documented here (as @Calculuswhiz noted in their comment).

Upvotes: 3

Related Questions