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

worker: add ports property to MessageEvents #37538

Closed
wants to merge 2 commits into from

Commits on Feb 27, 2021

  1. worker: add ports property to MessageEvents

    Add `ev.ports` for spec compliancy.
    
    Since we only emit the raw `data` value, and only create the
    `MessageEvent` instance if there are EventTarget-style listeners,
    we store the ports list temporarily on the MessagePort object itself,
    so that we can look it up when we need to create the event object.
    
    Fixes: nodejs#37358
    addaleax committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    54da525 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2021

  1. Configuration menu
    Copy the full SHA
    00f5e71 View commit details
    Browse the repository at this point in the history