Print exception hint in the debugger client when an exception is thrown. (#1841)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2017-05-23 16:06:25 +02:00
committed by GitHub
parent 7770b6237a
commit 29f57ec58f
8 changed files with 237 additions and 25 deletions
+19 -5
View File
@@ -15,11 +15,25 @@
print("exception handler configuration test")
function foo() {
try {
b = a / c;
} catch (e) {
print(e); // pass exception object to err handler
}
try {
undefined();
} catch (e) {
}
try {
xxx();
} catch (e) {
}
try {
throw 456;
} catch (e) {
}
try {
throw new RangeError("Bad range!");
} catch (e) {
}
}
foo()