Skip to content

Commit 5aa17cd

Browse files
Added tests for parameter initializers.
1 parent 8952ed6 commit 5aa17cd

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES5.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
for (var {} = {}, {} = {}; false; void 0) {
2323
}
24+
25+
function f({} = a, [] = a, { p: {} = a} = a) {
26+
return ({} = a, [] = a, { p: {} = a } = a) => a;
27+
}
2428
})();
2529

2630
(function () {

tests/cases/conformance/es6/destructuring/emptyVariableDeclarationBindingPatterns01_ES6.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
for (var {} = {}, {} = {}; false; void 0) {
2323
}
24+
25+
function f({} = a, [] = a, { p: {} = a} = a) {
26+
return ({} = a, [] = a, { p: {} = a } = a) => a;
27+
}
2428
})();
2529

2630
(function () {

0 commit comments

Comments
 (0)