summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/namedLambda.js
blob: 4be0c44c4cb0c0203164d3b085a8babc6726538d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This just tests that named lambdas don't crash in the tracer.

var f = function ff() {
  var k = 0;
  var counter = function q() {
      return ++k;
  }
  return counter;
}

function g() {
  for (var i = 0; i < 10; ++i) {
    f();
  }
}

g();