summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testFunctionIdentityChange.js
blob: 9f4b7dddf9dd71339f994389b8192b0d960d280e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function testFunctionIdentityChange()
{
  function a() {}
  function b() {}

  var o = { a: a, b: b };

  for (var prop in o)
  {
    for (var i = 0; i < 1000; i++)
      o[prop]();
  }

  return true;
}
assertEq(testFunctionIdentityChange(), true);