summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug535474.js
blob: 6e34298a2b8a259f4321217ae135de8bae5e888d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function f() {
  var _76 = {};
  for (var i = 0; i < arguments.length; i++) {
    var typ = arguments[i];
    _76[typ] = typ;
  }
  return function () {
    for (var i = 0; i < arguments.length; i++) {
      if (!(typeof (arguments[i]) in _76)) {
        return false;
      }
    }
    return true;
  }
}

g = f("number", "boolean", "object");

g("a", "b", "c", "d", "e", "f", 2);
g(2, "a", "b", "c", "d", "e", "f", 2);

/*
 * Don't assert --
 * Assertion failed: frame entry -4 wasn't freed
 * : _activation.entry[i] == 0 (../nanojit/Assembler.cpp:786)
 */