ladybird/Tests/LibWeb/Text/input/Worker/Worker-crypto.html
Tim Ledbetter 89b6cd3fb1 LibWeb: Expose crypto object to workers
This change moves the `crypto()` getter from `Window` to
`WorkerOrWindowGlobalScope`. This aligns our implementation with the
WebCrypto specification.
2024-09-18 10:09:01 +02:00

10 lines
264 B
HTML

<script src="../include.js"></script>
<script>
asyncTest(done => {
let work = new Worker("worker-crypto.js");
work.onmessage = (evt) => {
println(`Type of self.crypto: ${evt.data}`);
done();
};
});
</script>