mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
10 lines
143 B
JavaScript
10 lines
143 B
JavaScript
result=1;
|
|
try {
|
|
throw "Foo";
|
|
while (true); // doesn't halt, but does reset
|
|
print("hi");
|
|
result=0;
|
|
} catch(err) {
|
|
print("ERR:"+err);
|
|
}
|