summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Comprehensions/arguments.js
blob: 082374778b6424ce22499e50928d119c3c6ace44 (plain)
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);