When using a default param + some destructuring param + a rest param, the initialization order of the destructured arguments was incorrect due to the presence of the rest parameter.
5 lines
88 B
JavaScript
5 lines
88 B
JavaScript
// T6809
|
|
function t(x = "default", { a, b }, ...args) {
|
|
console.log(x, a, b, args);
|
|
}
|