Skip to content

Don't error on destructure of private property with computed property syntax - #26360

Merged
1 commit merged into
masterfrom
destructureComputedProperty_private
Aug 10, 2018
Merged

Don't error on destructure of private property with computed property syntax#26360
1 commit merged into
masterfrom
destructureComputedProperty_private

Conversation

@ghost

Copy link
Copy Markdown

Fixes#26356

I wasn't sure whether "p": p should error or not. Currently it does and you need ["p"]: p to access a private property.

@ghost
ghost merged commit 46d3caa into masterAug 10, 2018
@ghost
ghost deleted the destructureComputedProperty_private branch August 10, 2018 22:11
Albert Siddhartha Slawinski (errendir) added a commit to errendir/TypeScript that referenced this pull request Aug 11, 2018
* origin/master: (283 commits)
Don't error on destructure of private property with computed property syntax (microsoft#26360)
getDefaultExportInfo: Use `getImmediateAliasedSymbol` instead of `getAliasedSymbol` (microsoft#26364)
review comments
restore old algorithm
Dont use baseURL relative absolute paths in declaration emit, use absolute paths in bundle emit (microsoft#26341)
Update user baselines (microsoft#26358)
Don't store @template constraint in a TypeParameterDeclaration node (microsoft#26283)
fixAddMissingMember: Support interface and don't crash on type parameter (microsoft#25995)
Don't include class getter in spread type (microsoft#26287)
Don't crash on computed property in destructure (microsoft#26334)
Check the ambientness of a symbol name before attempting to trim it (microsoft#26312)
Still generate signatures in SkipContextSensitive mode just to match on return types (microsoft#25937)
fix handling if there is no commonPrefix
Actually add sorting of elaboration text to user baselines
Ping ryan instead of mohammed for user PRs now
handle failed lookups
make it work for root directory
really, really fix test(?)
add test
fix commonPrefix handling
...
Klaus Meinhardt (ajafff) added a commit to ajafff/TypeScript that referenced this pull request Aug 23, 2018
Ryan Cavanaugh (RyanCavanaugh) added a commit that referenced this pull request Aug 24, 2018
…mputed-name
Revert #26360: Don't error on destructure of private property with computed property syntax
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sheetalkamat@ajafff