Skip to content

Conversation

@magic-akari
Copy link

This pull request add support to arrow getter in Object.defineProperty.

Object.defineProperty(exports, 'a', {
    enumerable: true,
    get: function () {
        return q.p;
    }
});

Object.defineProperty(exports, 'b', {
    enumerable: true,
    get() {
        return q.p;
    }
});

Object.defineProperty(exports, 'c', {
    enumerable: true,
    get: () => {
        return q.p;
    }
});

Object.defineProperty(exports, 'd', {
    enumerable: true,
    get: () => q.p,
});

Before this pull request, only a and b are detected.
After this pull request, c and d will also be detected.

@himself65
Copy link
Member

/cc @guybedford

@guybedford
Copy link
Collaborator

@himself65 sorry, but this package is only taking bug fixes, not feature additions at this point, due to backwards compatibility requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants