Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 7, 2024
1 parent 8c58302 commit f72038a
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1452,16 +1452,6 @@ fn test_empty_key_in_object_pattern_removed() {
test_same("const {[foo()]: {}} = {};");
}

#[test]
fn test_empty_key_in_object_pattern_with_default_value_maybe_removed() {
test("const {f: {} = 0} = {};", "");
// In theory the following case could be reduced to `foo()`, but that gets more
// complicated to implement for object patterns with multiple keys with side
// effects. Instead the pass backs off for any default with a possible side
// effect
test_same("const {f: {} = foo()} = {};");
}

#[test]
fn test_empty_key_in_object_pattern_not_removed_with_object_rest() {
test_same("const {f: {}, ...g} = foo()");
Expand Down

0 comments on commit f72038a

Please sign in to comment.