summaryrefslogtreecommitdiff
path: root/test/js/core.infinite.html
blob: 84c2ff2a3fa480570d5a4c3a070a57a259c3a194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<title>Infinite loop</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Infinite loop</h1>
<p>Before</p>
<noscript><p>Javascript is disabled</p></noscript>
<script>

function bar(x) { return  (x/2) + 1; }

n=1;
while (n < 3) {
  n = bar(n);

}

</script>
</script>
<p>Afterwards</p>
</body>
</html>