Skip to content

update javascript for in snippet #111061

@BTNDev

Description

@BTNDev

Hello!

I noticed that the current for in snippet uses the object.hasOwnProperty(), which can lead to a security vulnerability described here: https://eslint.org/docs/rules/no-prototype-builtins. I'm proposing a change to Object.hasOwnProperty.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersjavascriptJavaScript support issuestypescriptTypescript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions