Skip to content

Move hasOwn from Object instance to Object constructor - #48207

Merged
Ryan Cavanaugh (RyanCavanaugh) merged 1 commit into
microsoft:mainfrom
RyanCavanaugh:fixHasOwn
Mar 10, 2022
Merged

Move hasOwn from Object instance to Object constructor#48207
Ryan Cavanaugh (RyanCavanaugh) merged 1 commit into
microsoft:mainfrom
RyanCavanaugh:fixHasOwn

Conversation

@RyanCavanaugh

Copy link
Copy Markdown
Member

Fixes #48206

@DanielRosenwasser

Copy link
Copy Markdown
Member

🤦‍♂️

In checker.ts we have some logic for reporting whether or not the lib has to be adjusted for newer methods. Is that correct as well?

@DanielRosenwasser

Copy link
Copy Markdown
Member

Nah should be fine.

image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we cherry-pick to release-4.6 and release a patch?

@RyanCavanaugh

Copy link
Copy Markdown
Member Author

I think so, this will not be the first report of it

@RyanCavanaugh

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) cherry-pick this to release-4.6

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

Heya Ryan Cavanaugh (@RyanCavanaugh), I've started to run the task to cherry-pick this into release-4.6 on this PR at d1b063e. You can monitor the build here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Ryan Cavanaugh (@RyanCavanaugh), I've opened #48213 for you.

TypeScript Bot (typescript-bot) pushed a commit to typescript-bot/TypeScript that referenced this pull request Mar 10, 2022
Component commits:
d1b063e Move `hasOwn` from Object instance to Object constructor
Fixes microsoft#48206
@RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) merged commit a4f5555 into microsoft:main Mar 10, 2022
Daniel Rosenwasser (DanielRosenwasser) pushed a commit that referenced this pull request Mar 11, 2022
Component commits:
d1b063e Move `hasOwn` from Object instance to Object constructor
Fixes #48206

Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com>
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lib.es2022: hasOwn appears to be defined on Object prototype rather than on constructor

3 participants