cleanup
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
function test(val) {
|
||||
try {
|
||||
if (isNaN(val)) {
|
||||
throw "Not a number";
|
||||
} else {
|
||||
console.log("Got number");
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
} finally {
|
||||
console.log("Done " + val);
|
||||
}
|
||||
}
|
||||
test("a");
|
||||
test(100);
|
||||
Reference in New Issue
Block a user