bublejs / bublejs/buble

Chained destructurings emit invalid code

Open
#78 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
874
Forks
62
PR merge metrics
No merged PRs in 30d

Description

Examples:

```js
({a,b} = {c,d} = {a:1,b:2,c:3,d:4});
var a,b,c,d; [a,b] = [c,d] = [1,2];
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two chained destructuring examples in the issue and inspect the generated JavaScript. Trace how the compiler handles chained object and array assignments; done means both examples emit valid JavaScript while preserving their assignment behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.