#How to use / enable 'eval()' in workers?

1 messages · Page 1 of 1 (latest)

willow saffron
#

I would love to use eval in my workers code and I fully understand the risks of it.
It seems the PR has made it available in workerd and workers SDK, is it available on CF workers as well yet? How can I enable it? https://github.com/cloudflare/workerd/pull/1338

GitHub

This adds a new UnsafeEval binding APi that is intended only for use with workerd and only when the --experimental flag is specified. See the included test for an example on how to use it.
console....

hazy hamlet
#

is it available on CF workers as well yet

#

Nope, this is exclusively for workerd and not Cloudflare Workers.