chore: fix & update node compat config (#19106)

This commit is contained in:
Yoshiya Hinosawa 2023-05-13 14:49:11 +09:00 committed by GitHub
parent 68c0fcb157
commit 2a0c664840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 41 deletions

View file

@ -0,0 +1,13 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../../../test_util/std/testing/asserts.ts";
import workerThreads from "node:worker_threads";
Deno.test("[node/worker_threads] BroadcastChannel is exported", () => {
assertEquals<unknown>(workerThreads.BroadcastChannel, BroadcastChannel);
});
Deno.test("[node/worker_threads] MessageChannel are MessagePort are exported", () => {
assertEquals<unknown>(workerThreads.MessageChannel, MessageChannel);
assertEquals<unknown>(workerThreads.MessagePort, MessagePort);
});