Re:Cloudflare Workers: Run JavaScript Service Workers at the...
by gok on Friday September 29, 2017 @12:00PM
(#15366442)
The blog post mentions WebAssembly support in V8, but I can't get it to work in the playground. Coming later?
[ Parent
| on HN ]
Re:Cloudflare Workers: Run JavaScript Service Workers at the...
by kentonv on Friday September 29, 2017 @12:06PM
(#15366501)
Yes, we intentionally disabled it for now because the WebAssembly API allows dynamic code loading at runtime. We want all code deployed on Cloudflare to go through our standard deployment process so that we have copies of all of it e.g. for forensic purposes. Also, when we integrate with Cloudflare Apps, that code needs to be moderated.
What we'll do at some point is allow you to provide a WASM blob along-side your script, which will be loaded separately and then exposed to your script probably as a global variable.