镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Salsa does not discover properties defined with Object.defineProperty #6651

Description

@egamma

From alexandrudima on January 27, 2016 13:46

var obj1 = {};
Object.defineProperty(obj1, "x", { value: 42, writable: false });

obj1.

image

Copied from original issue: microsoft/vscode#2451

Activity

  1. billti commented on Jan 27, 2016

    @billti
    Member

    Per TypeScript semantics, we see obj1 as a {}, and don't support augmenting it (e.g. we also don't recognized adding via obj1.x = ...).

    The type of obj1 can be explicitly set via a JsDoc comment. If you feel expando and defineProperty support is critical for Salsa, please reopen.

  2. alexdima commented on Jan 29, 2016

    @alexdima
    Member

    👍

  3. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions