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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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