var Thread = java.lang.Thread;
var thread = new Thread(function() {
while(true) {
print("hello");
}
});
thread.daemon = false;
thread.start();
Expected output:
"hello" being printed continuously (infinite loop)
Output seen:
jjs shell exits immediately