diff options
Diffstat (limited to 'tests/testdata/workers/read_check_worker.js')
-rw-r--r-- | tests/testdata/workers/read_check_worker.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testdata/workers/read_check_worker.js b/tests/testdata/workers/read_check_worker.js new file mode 100644 index 000000000..2ad01bf5b --- /dev/null +++ b/tests/testdata/workers/read_check_worker.js @@ -0,0 +1,7 @@ +onmessage = async () => { + const { state } = await Deno.permissions.query({ + name: "read", + }); + postMessage(state === "granted"); + close(); +}; |