Files
node/lib/internal
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
..
2021-01-22 19:56:34 -08:00
2021-03-01 09:47:56 -08:00
2021-02-23 11:25:59 +00:00
2021-01-18 11:43:32 +01:00
2021-01-28 12:53:50 +01:00
2021-01-27 20:46:54 +02:00
2020-12-07 10:08:03 -08:00
2020-12-29 15:49:09 +00:00
2021-02-06 05:17:49 -08:00
2021-03-01 09:47:56 -08:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.