Debian Codegraph @

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

raw
1 // Test 1.
2 function g(f, inputs) {
3 for (var j = 0; j < 2; j++) {
4 try {
5 f(inputs[j])
6 } catch (e) {}
7 }
8 }
9 function f(x) {
10 returnx > 0 ? x && Number.MIN_VALUE >> 0 : x;
11 };
12 g(f, [-Number.E])
13
14 // Test 2.
15 function h(x) {
16 (x && 4294967296 >> 0)()
17 }
18 try {
19 h(Number.MAX_VALUE)
20 h()
21 } catch (e) {}
22
23 // Test 3.
24 var arr = new Float64Array([1, 2, 3, 4, 5, 6, 7, 8, 9, -0]);
25 for (var i = 0; i < 10; i++)
26 {
27 var el = +arr[i];
28 print(String(el ? +0 : el));
29 }
30
31 // Test 4.
32 setIonCheckGraphCoherency()
33 function j(x) {
34 x(Math.hypot(x && 0, 4294967296))
35 }
36 try {
37 j(Infinity)
38 j()
39 } catch (e) {}