Victor Felder 28adaa49b2 Order of arguments initialization - fixes T6809
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.
2015-12-21 02:53:36 +01:00

5 lines
88 B
JavaScript

// T6809
function t(x = "default", { a, b }, ...args) {
console.log(x, a, b, args);
}