summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/testdata/worker_module/other_file.js
diff options
context:
space:
mode:
authorVedant Pandey <vedantpandey46@gmail.com>2023-06-15 20:30:30 +0530
committerGitHub <noreply@github.com>2023-06-15 17:00:30 +0200
commit0c50c39c35f1c92bbb96bc3e101e2c446256cb7b (patch)
tree568d0f393997a7c4dab9665e7a20e10a5af2187d /cli/tests/unit_node/testdata/worker_module/other_file.js
parentf145cbfaccd9f3b251b2f80690ad7c68b26d924b (diff)
fix(node): Worker constructor doesn't check type: module of package.json (#19480)
Diffstat (limited to 'cli/tests/unit_node/testdata/worker_module/other_file.js')
-rw-r--r--cli/tests/unit_node/testdata/worker_module/other_file.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/unit_node/testdata/worker_module/other_file.js b/cli/tests/unit_node/testdata/worker_module/other_file.js
new file mode 100644
index 000000000..41789dfe8
--- /dev/null
+++ b/cli/tests/unit_node/testdata/worker_module/other_file.js
@@ -0,0 +1,3 @@
+export async function myFunction() {
+ await new Promise((resolve) => setTimeout(resolve, 100));
+}