mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-19 01:22:54 +00:00
This change moves the `crypto()` getter from `Window` to `WorkerOrWindowGlobalScope`. This aligns our implementation with the WebCrypto specification.
10 lines
264 B
HTML
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>
|