Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node:worker_threads] MessagePort is lacking methods off and removeListener #23564

Closed
mys1024 opened this issue Apr 25, 2024 · 0 comments · Fixed by #23598
Closed

[node:worker_threads] MessagePort is lacking methods off and removeListener #23564

mys1024 opened this issue Apr 25, 2024 · 0 comments · Fixed by #23598
Assignees
Labels
bug Something isn't working node API polyfill Related to various "node:*" modules APIs node compat

Comments

@mys1024
Copy link

mys1024 commented Apr 25, 2024

Version: Deno 1.42.4, Node.js 20.11.1

import { MessageChannel } from "node:worker_threads";

const { port1 } = new MessageChannel();

console.log("off" in port1); // prints true in Node.js, but false in Deno
console.log("removeListener" in port1); // prints true in Node.js, but false in Deno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node API polyfill Related to various "node:*" modules APIs node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants