node/test/parallel/test-messagechannel.js
Khafra e2cf2f0fda
src: readiterable entries may be empty
fixup

PR-URL: https://github.com/nodejs/node/pull/50398
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
2023-10-27 21:37:32 +00:00

13 lines
255 B
JavaScript

'use strict';
const common = require('../common');
// See: https://github.com/nodejs/node/issues/49940
(async () => {
new MessageChannel().port1.postMessage({}, {
transfer: {
*[Symbol.iterator]() {}
}
});
})().then(common.mustCall());