aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/v4/exceptions.1.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/v4/exceptions.1.js')
-rw-r--r--tests/manual/v4/exceptions.1.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/manual/v4/exceptions.1.js b/tests/manual/v4/exceptions.1.js
new file mode 100644
index 0000000000..5e4e152c19
--- /dev/null
+++ b/tests/manual/v4/exceptions.1.js
@@ -0,0 +1,16 @@
+
+function foo(a) {
+ x = 1
+ if (a)
+ throw 100;
+ print("unreachable.1")
+}
+
+function bar(a) {
+ print("reachable");
+ foo(a)
+ print("unreachable.2")
+}
+
+bar(1)
+print("unreachable.3")