Skip to content

Lint: prefer Object.hasOwn, avoid eval - #39668

Merged
Josh-Cena merged 1 commit into
mdn:mainfrom
Josh-Cena:object-hasown
May 27, 2025
Merged

Josh-Cena merged 1 commit into
mdn:mainfrom
Josh-Cena:object-hasown

Conversation

@Josh-Cena

Copy link
Copy Markdown
Member

Remove usage of hasOwnProperty to promote good practices. Avoid unnecessary usage of eval.

@Josh-Cena
Josh-Cena requested review from a team, chrisdavidmills, hamishwillee and wbamberg and removed request for a team, chrisdavidmills, hamishwillee and wbamberg May 25, 2025 09:25
@github-actions github-actions Bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs Content:JS JavaScript docs Content:HTTP HTTP docs labels May 25, 2025
@Josh-Cena
Josh-Cena requested a review from bsmth May 25, 2025 09:26
@github-actions github-actions Bot added the size/s [PR only] 6-50 LoC changed label May 25, 2025

@bsmth bsmth left a comment

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.

Looks nicer, thanks. One question for you, but not blocking.

@Josh-Cena
Josh-Cena merged commit 847f754 into mdn:main May 27, 2025
@Josh-Cena
Josh-Cena deleted the object-hasown branch May 27, 2025 13:11
zachernuk pushed a commit to zachernuk/content that referenced this pull request Jun 4, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs Content:JS JavaScript docs Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants