blob: c05f57d6c0d86cc1753ba45fe2df6d3e2642b506 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2021 Florian Müllner <fmuellner@gnome.org>
let count = 0;
function a() {
throw new Error(`Exception nº ${++count}`);
}
try {
a();
} catch (e) {
print(`Caught exception: ${e}`);
}
a();
|