js/src/jit-test/tests/ion/900683.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 if (typeof ParallelArray === "undefined")
michael@0 2 quit();
michael@0 3
michael@0 4 ParallelArray(11701, function() {
michael@0 5 return /x/
michael@0 6 }).reduce(function(a) {
michael@0 7 if (a % 9) {
michael@0 8 for (var y = 0; y; ++y) {}
michael@0 9 return []
michael@0 10 }
michael@0 11 })
michael@0 12
michael@0 13 function foo() {
michael@0 14 return "foo";
michael@0 15 }
michael@0 16
michael@0 17 function test() {
michael@0 18 var a = [1, 2, 3];
michael@0 19 var s = '';
michael@0 20 for (var x of a)
michael@0 21 for (var i of 'y')
michael@0 22 s += '' + foo()
michael@0 23 } test();
michael@0 24
michael@0 25 ignoreComments = [];
michael@0 26
michael@0 27 function bug909276() {
michael@0 28 var actual = '';
michael@0 29 for (var next of ignoreComments) {
michael@0 30 actual += a;
michael@0 31 for (var b in x) {
michael@0 32 actual += b.eval("args = [-0, NaN, -1/0]; this.f(-0, NaN, -1/0);");
michael@0 33 }
michael@0 34 }
michael@0 35 var y = Iterator([1,2,3], true);
michael@0 36 for (var c in y) {}
michael@0 37 } bug909276();

mercurial