Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUTURE(ext/net): remove Deno.(Conn|TlsConn|Listener|TlsListener|UnixConn).prototype.rid #23219

Merged
merged 7 commits into from
Apr 7, 2024

Conversation

iuioiua
Copy link
Collaborator

@iuioiua iuioiua commented Apr 3, 2024

Towards #23089

if (internals.future) {
ObjectDefineProperty(this, "rid", { value: undefined });
}
ObjectDefineProperty(this, internalRidSymbol, { value: rid });
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor cleanup: enumerable property is false by default. Ditto elsewhere.

enumerable: false,
value: rid,
});
if (internals.future) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this change also takes care of TlsConn and UnixConn due to inheritance.

enumerable: false,
value: rid,
});
if (internals.future) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this also takes care of TlsListener due to inheritance.

runtime/js/99_main.js Outdated Show resolved Hide resolved
@iuioiua
Copy link
Collaborator Author

iuioiua commented Apr 4, 2024

Prerequisite #23220

@iuioiua iuioiua marked this pull request as draft April 4, 2024 01:16
@iuioiua iuioiua marked this pull request as ready for review April 4, 2024 22:10
@iuioiua iuioiua requested a review from bartlomieju April 4, 2024 22:10
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iuioiua iuioiua merged commit 49f6e2e into denoland:main Apr 7, 2024
17 checks passed
@iuioiua iuioiua deleted the future-net-rid branch April 7, 2024 22:59
satyarohith pushed a commit that referenced this pull request Apr 11, 2024
…Conn).prototype.rid` (#23219)

Towards #23089

---------

Signed-off-by: Asher Gomez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants