~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/closures/t024.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
actual = '';
 
2
expected = '787878,';
 
3
 
 
4
var q = [];
 
5
for (var a = 0; a < 3; ++a) {
 
6
    (function () {
 
7
        for (var b = 7; b < 9; ++b) {
 
8
            (function () {
 
9
                for (var c = 0; c < 1; ++c) {
 
10
                  q.push(b);
 
11
                }
 
12
            })();
 
13
        }
 
14
    })();
 
15
}
 
16
appendToActual(q.join(""));
 
17
 
 
18
 
 
19
assertEq(actual, expected)