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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user