summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-mochi.js
blob: c477ef0972ade2442490641cf694257f71d976d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
actual = '';
expected = 'true,';

var isNotEmpty = function (obj) {
  for (var i = 0; i < arguments.length; i++) {
    var o = arguments[i];
    if (!(o && o.length)) {
      return false;
    }
  }
  return true;
};

appendToActual(isNotEmpty([1], [1], [1], "asdf", [1]));


assertEq(actual, expected)