mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-12 06:58:22 -05:00
20 lines
300 B
TypeScript
20 lines
300 B
TypeScript
export default function () {
|
|
let logs: unknown[] = [];
|
|
|
|
try {
|
|
logs.push("here");
|
|
|
|
try {
|
|
throw new Error("nested boom");
|
|
} catch (error) {
|
|
logs.push(error.message);
|
|
}
|
|
|
|
throw new Error("boom");
|
|
} catch (error) {
|
|
logs.push(error.message);
|
|
}
|
|
|
|
return logs;
|
|
}
|