Skip to content

worker: make transfer list behave like web MessagePort

(The diff is a bit easier to view with whitespace diffing disabled.)

Allow generic iterables as transfer list arguments, as well as an options object with a transfer option, for web compatibility.

Refs: https://github.com/nodejs/node/pull/28033#discussion_r289964991

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading