function f(a = undefined, b) {} console.log(f.length); // should be 2 regardless of default