Skip to content

Output of an incorrect problem when extending a class prototype using Object.defineProperty #50692

@vadimmos

Description

@vadimmos

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.71.0
  • OS Version: Windows 10 10.0.19044 (on Linux similarly)

Steps to Reproduce:

  1. declare some class
  2. extend the class prototype via Object.defineProperty
  3. viacode shows a problem about missing a property

example2

moreover, if you assign a new property directly to the prototype, there are no problems

example3

everything is exactly the same if you declare a constructor function instead of a class

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions