Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not tree-shake arguments that contain a spread element (#3654)
- Loading branch information
1 parent
1aeb23b
commit 1ebaa09
Showing
3 changed files
with
17 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
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,4 @@ | ||
module.exports = { | ||
description: | ||
'handles using the spread operator to add arguments when the first argument is unused (#3652)' | ||
}; |
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,5 @@ | ||
function test(unused, used) { | ||
assert.strictEqual(used, 'used'); | ||
} | ||
|
||
test(...['unused', 'used']); |