Skip to content

Conversation

jbronder
Copy link
Contributor

Towards #24236. Replaces JS builtins with equivalent primordials.

`ext/node/polyfills/internal/event_target.mjs`
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

}
let wrappedHandler = this[kHandlers]?.get(name);
let wrappedHandler = MapPrototypeGet(this[kHandlers], name);
Copy link
Member

Choose a reason for hiding this comment

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

Note: This is not equivalent change, but it should be fine as this[kHandlers] is set above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood. Yeah, I did leave it off. It seemed a little strange to do a null check given that it was just set to a SafeMap value above.

@kt3k kt3k merged commit bc74fad into denoland:main Jun 17, 2025
18 checks passed
@jbronder jbronder deleted the event_target_internal_primordial branch June 17, 2025 14:14
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.

2 participants