Skip to content

Commit

Permalink
feat: Add Deno.core.internalFdSymbol
Browse files Browse the repository at this point in the history
This commit adds `Deno.core.internalFdSymbol` which is
a symbol similar to `Deno.core.internalRidSymbol` that
allows APIs to forward a file descriptor value without
exposing this value to a user.
  • Loading branch information
muthu90tech authored Jan 26, 2025
1 parent c5ccc09 commit 59195b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/01_core.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@
// Extra Deno.core.* exports
const core = ObjectAssign(globalThis.Deno.core, {
internalRidSymbol: Symbol("Deno.internal.rid"),
internalFdSymbol: Symbol("Deno.internal.fd"),
resources,
eventLoopTick,
BadResource,
Expand Down

0 comments on commit 59195b9

Please sign in to comment.