1 2 3 4 5 6 7 8 9 10 11 12 13 14
function values(g) { return [for (x of g) x]; } function argumentsTest() { return values((for (i of [0,1,2]) arguments[i])); } assertDeepEq(argumentsTest('a', 'b', 'c'), ['a', 'b', 'c']); if (typeof reportCompare === "function") reportCompare(true, true);