diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-04-08 08:59:37 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 08:59:37 +1000 |
commit | 49f6e2e79e66fe2c456e8745e86cfd148a748c9d (patch) | |
tree | 30879930fc11895b937eb3bfad0fd8d1d3c56936 /ext/net/01_net.js | |
parent | 9b34b7ed1862c4b7bd84d52cd3417f5a1592efc4 (diff) |
FUTURE(ext/net): remove `Deno.(Conn|TlsConn|Listener|TlsListener|UnixConn).prototype.rid` (#23219)
Towards #23089
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'ext/net/01_net.js')
-rw-r--r-- | ext/net/01_net.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js index 81ff1a50d..0b0dec4d1 100644 --- a/ext/net/01_net.js +++ b/ext/net/01_net.js @@ -100,6 +100,12 @@ class Conn { #writable; constructor(rid, remoteAddr, localAddr) { + if (internals.future) { + ObjectDefineProperty(this, "rid", { + enumerable: false, + value: undefined, + }); + } ObjectDefineProperty(this, internalRidSymbol, { enumerable: false, value: rid, @@ -260,6 +266,12 @@ class Listener { #promise = null; constructor(rid, addr) { + if (internals.future) { + ObjectDefineProperty(this, "rid", { + enumerable: false, + value: undefined, + }); + } ObjectDefineProperty(this, internalRidSymbol, { enumerable: false, value: rid, |