mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
12 lines
215 B
JavaScript
12 lines
215 B
JavaScript
function foo() {}
|
|
setInterval(foo, 10);
|
|
var hadError = false;
|
|
try {
|
|
changeInterval(foo, 10); // should just warn/error?
|
|
} catch (e) {
|
|
print("Caught "+e);
|
|
hadError = true;
|
|
}
|
|
clearInterval();
|
|
result = hadError;
|