Files
test-repo/tests/destructuring/destructuring_param.js
T

12 lines
211 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
function f(a, { b }) {
return a + b;
}
2016-12-30 13:32:43 -05:00
// TODO: These throw errors when parsing.
// function g(a, { a }) {
// return a;
// }
2016-12-23 19:31:38 +00:00
2016-12-30 13:32:43 -05:00
// function h({ a, { b } }, { c }, { { d } }) {
// return a + b + c + d;
// }