feat: 内核预留 MessagePort 原型与 MessageChannel 构造器槽位

This commit is contained in:
2026-10-09 03:08:52 +00:00
parent ff31e5bfd7
commit 0ea87b8001
9 changed files with 72 additions and 28 deletions
+1
View File
@@ -142,6 +142,7 @@ impl oxide_runtime_api::VmHost for Vm {
ProtoKind::Float64ArrayConstructor => &world.float64array_constructor,
ProtoKind::BigInt64ArrayConstructor => &world.bigint64array_constructor,
ProtoKind::BigUint64ArrayConstructor => &world.biguint64array_constructor,
ProtoKind::MessagePortProto => &world.message_port_proto,
};
P::as_ptr(p) as *mut JsObject
}