summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-961877.js
blob: 37b146feafdf27328656b96d94104f4c6c8a3490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
g = Function("", "for (var i = 0; i < 0; ++i) { eval('this.arg'+0 +'=arg'+0); }");
Math.abs(undefined);
gczeal(2,300);
evaluate("\
var toFloat32 = (function() {\
    var f32 = new Float32Array(1);\
    function f(x) { return f32[0] = x; }\
    return f;\
})();\
for (var i = 0; i < 64; ++i) {\
    var p = Math.pow(2, i) + 1;\
    g(toFloat32(p));\
    toFloat32(-p);\
}");