node/lib/internal/per_context
Anna Henningsen 007a85ce83
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: https://github.com/nodejs/node/issues/37358

PR-URL: https://github.com/nodejs/node/pull/37538
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2021-03-03 23:23:38 +01:00
..
domexception.js lib: use global Error constructors from primordials 2020-10-07 13:44:19 +00:00
messageport.js worker: add ports property to MessageEvents 2021-03-03 23:23:38 +01:00
primordials.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00