-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/compat): Add missing visit children for
destructuring
(#9658)
**Related issue:** - Closes #9647
- Loading branch information
1 parent
9c35520
commit 32116a0
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
swc_ecma_compat_es2015: patch | ||
swc_core: patch | ||
--- | ||
|
||
fix: 🐛 add missing visit children in for stmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
crates/swc_ecma_compat_es2015/tests/__swc_snapshots__/src/destructuring.rs/nested_for_of.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
for (const ref of Object.entries(o)) { | ||
let _ref = _sliced_to_array(ref, 2), | ||
k1 = _ref[0], | ||
v1 = _ref[1]; | ||
for (const ref of Object.entries(o)) { | ||
let _ref = _sliced_to_array(ref, 2), | ||
k2 = _ref[0], | ||
v2 = _ref[1]; | ||
console.log(k1, v1, k2, v2); | ||
} | ||
} |