~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/jaeger/loops/bug658290.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
var SECTION = "15.4.5.2-2";
 
2
addCase(new Array, 0, Math, Math.pow(2, SECTION));
 
3
var arg = "", i = 0;
 
4
var a = eval("new Array(" + arg + ")");
 
5
addCase(a, i, +i + 1, Math.pow(2, 12) + i + 1, true);
 
6
function addCase(object, old_len, set_len, new_len, checkitems) {
 
7
    for (var i = old_len; i < new_len; i++) if (object[i] != 0) {}
 
8
}