5 ms·
Wouldn't infinitely spawning web workers do the same thing as a zip bomb? ``` <script> const workerBlob = new Blob([' while (true) { console.log(
by DriverDaily 3y ago
Wouldn't infinitely spawning web workers do the same thing as a zip bomb?
```
<script>
const workerBlob = new Blob(['
while (true) { console.log("this is a worker that will never stop") }
'], { type: 'application/javascript' })
const workerBlobURL = URL.createObjectURL(workerBlob)
while (true) { new Worker(workerBlobURL) }
</script>
```
- gitgud 3y agoThe zip file is decompressed on the server, whereas that HTML/JS will be executed on the client
- DriverDaily 3y agoI see, I misunderstood