~ubuntu-branches/ubuntu/wily/mozjs17/wily

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/closures/t037.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 = '7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,';
 
3
 
 
4
function heavy(s, t, u) {return eval(s)}
 
5
 
 
6
for (var i = 0; i < 5; ++i) {
 
7
  var flat = heavy("(function () {var x = t * t; return function(){return x + u}})()", 2, 3);
 
8
  for (var j = 0; j < 5; ++j) {
 
9
    appendToActual(flat());
 
10
  }
 
11
 }
 
12
 
 
13
 
 
14
assertEq(actual, expected)