Skip to content

Commit b879239

Browse files
committed
Add IoChannelCapTableEntry::getType().
There's one place in the internal codebase that needs it.
1 parent 980b36d commit b879239

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/workerd/io/io-channels.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ class IoChannelCapTableEntry final: public Frankenvalue::CapTableEntry {
371371

372372
IoChannelCapTableEntry(Type type, uint channel): type(type), channel(channel) {}
373373

374+
Type getType() const {
375+
return type;
376+
}
377+
374378
// Throws if type doesn't match.
375379
uint getChannelNumber(Type expectedType);
376380

0 commit comments

Comments
 (0)