mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
12 lines
153 B
JavaScript
12 lines
153 B
JavaScript
// test that interrupt works 3
|
|
|
|
var result = -5;
|
|
for(j=0;j<10;j++) {
|
|
i=0;
|
|
while (i++ < 10) {
|
|
result++;
|
|
if (i>5) interrupt();
|
|
}
|
|
}
|
|
result=0;
|