archives

« Bugzilla Issues Index

#1591 — Coverage: 10.6 enumeration of arguments object


The coverage around missing formals, actual parameters and enumeration of the defined formals is missing.

function f(a, b, c)
{
for (var i in arguments)
console.log(arguments[i]);
}
f(5);
//expected 5

The reason this is interesting is that the collateral has tests where there are no formals but x number of parameters or has couple formals but no parameters. Having some number of formals missing is currently a gap that needs coverage.