1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00
denoland-deno/cli/tests/node_compat/test/parallel/test-worker-threads-message-channel.js
Marvin Hagemeister f1d0f745d3
fix(node): expose channels in worker_threads (#19086)
This PR ensures that node's `worker_threads` module exports
`MessageChannel`, `MessagePort` and the `BroadcastChannel` API. Fixing
these won't make `esbuild` work, but brings us one step closer 🎉

Fixes #19028 .
2023-05-11 12:32:19 +02:00

10 lines
273 B
JavaScript

// deno-fmt-ignore-file
// deno-lint-ignore-file
"use strict";
const assert = require("assert/strict");
const worker_threads = require("worker_threads");
assert.equal(MessageChannel, worker_threads.MessageChannel);
assert.equal(MessagePort, worker_threads.MessagePort);