Skip to content

Conversation

@uzmoi
Copy link
Member

@uzmoi uzmoi commented Jan 14, 2026

What

{ hoge: hoge }の代わりに{ hoge }と書けるようになります。
分割代入でもlet { hoge: hoge } = ..の代わりにlet { hoge } = ..と書けるようになります。

キーが文字列や予約語な場合には無効です。
予約語を変数名に使用する方法は無いはず。

isStaticがtrueな場所(AiSONなど)でも無効です。

Why

Resolve #873

Additional info (optional)

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
src/parser/syntaxes/expressions.ts 95.54% <100.00%> (+6.35%) ⬆️

... and 29 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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