michael@0: // |jit-test| exitstatus: 6; michael@0: michael@0: /* This test will loop infinitely if the shell watchdog michael@0: fails to kick in. */ michael@0: michael@0: timeout(0.1); michael@0: var start = new Date(); michael@0: michael@0: while (true) { michael@0: var end = new Date(); michael@0: var duration = (end.getTime() - start.getTime()) / 1000; michael@0: if (duration > 1) { michael@0: print("tick"); michael@0: start = new Date(); michael@0: } michael@0: }