Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,23 @@
// Flags: --expose-internals
'use strict';
const common = require('../common');
const assert = require('assert');
const { E, F } = require('internal/test/transfer');
// Tests that F is transferable even tho it does not directly,
// observably extend the JSTransferable class.
const mc = new MessageChannel();
mc.port1.onmessageerror = common.mustNotCall();
mc.port1.onmessage = common.mustCall(({ data }) => {
assert(data instanceof F);
assert(data instanceof E);
assert.strictEqual(data.b, 1);
mc.port1.close();
});
mc.port2.postMessage(new F(1));